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:
Friedemann Kleint 2021-01-12 12:22:03 +01:00
parent c262a69851
commit 29b2387587

View File

@ -671,8 +671,8 @@ bool QWindowsFontDatabase::populateFamilyAliases(const QString &missingFamily)
void QWindowsFontDatabase::populateFamily(const QString &familyName)
{
qCDebug(lcQpaFonts) << familyName;
if (familyName.size() >= LF_FACESIZE) {
qCWarning(lcQpaFonts) << "Unable to enumerate family '" << familyName << '\'';
if (familyName.size() >= LF_FACESIZE) { // Field length of LOGFONT::lfFaceName
qCDebug(lcQpaFonts) << "Unable to enumerate family '" << familyName << '\'';
return;
}
HDC dummy = GetDC(0);