Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.4.2
-
None
-
Windows 7 x64
-
5f2f38854f20e04dbd8ae25ed0b346b85450e116
Description
After I got the latest code from git 5.4 branch, Qt will assert in QtFontFamily::ensurePopulated():
void QtFontFamily::ensurePopulated() { if (populated) return; QGuiApplicationPrivate::platformIntegration()->fontDatabase()->populateFamily(name); Q_ASSERT_X(populated, Q_FUNC_INFO, qPrintable(name)); }
When the assertion occurred, The font name is "Simsun". Since when EnumFontFamiliesEx() is called with "Simsun", the font family name in its callback will be "宋体" which is alias to "Simsun". But that will prevent QtFontFamily.populated of "Simsun" to be set to true.
Attachments
For Gerrit Dashboard: QTBUG-44647 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
106411,5 | Windows: Introduce delayed population to the FreeType font database. | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |
107127,5 | Register font's english name as alias when populating font database | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |