Windows font engine: Silence warnings about not being able to enumate font families
Turn the warning into a qCDebug() statement and add explanatory comment. Fixes: QTBUG-85683 Pick-to: 5.15 6.0 Change-Id: I2a6a7a089a660294f3e9c3096299c75635b3b215 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
c262a69851
commit
29b2387587
@ -671,8 +671,8 @@ bool QWindowsFontDatabase::populateFamilyAliases(const QString &missingFamily)
|
|||||||
void QWindowsFontDatabase::populateFamily(const QString &familyName)
|
void QWindowsFontDatabase::populateFamily(const QString &familyName)
|
||||||
{
|
{
|
||||||
qCDebug(lcQpaFonts) << familyName;
|
qCDebug(lcQpaFonts) << familyName;
|
||||||
if (familyName.size() >= LF_FACESIZE) {
|
if (familyName.size() >= LF_FACESIZE) { // Field length of LOGFONT::lfFaceName
|
||||||
qCWarning(lcQpaFonts) << "Unable to enumerate family '" << familyName << '\'';
|
qCDebug(lcQpaFonts) << "Unable to enumerate family '" << familyName << '\'';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
HDC dummy = GetDC(0);
|
HDC dummy = GetDC(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user