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
Change-Id: I2a6a7a089a660294f3e9c3096299c75635b3b215
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit 29b2387587fe2ed2a73bdcbfa928acb755537284)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Friedemann Kleint 2021-01-12 12:22:03 +01:00 committed by Qt Cherry-pick Bot
parent 5370ee5f07
commit c688bcb2f6

View File

@ -669,8 +669,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);