Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.4.0
-
None
-
OS X 10.9.5
Description
Qt 5.4.0 introduced handling of Apple's fallback font list or at least it introduced a warning message if the lookup of fonts in that list fails. This means that each and every application prints a list of repeated error messages about fonts that the user might have removed because they're of no use to him. In my case:
QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "STSongti-SC-Regular" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "STSongti-TC-Regular" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "DFKaiShu-SB-Estd-BF" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "DFKaiShu-SB-Estd-BF" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "Baghdad" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "Ayuthaya" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "BanglaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "SinhalaSangamMN" QCoreTextFontDatabase: Failed to resolve family name for PostScript name "TeluguSangamMN"
The question why Apple doesn't implement a locale-specific fallback font list aside, Qt doesn't need to warn about the lookup failure at all because these fallback fonts don't appear to serve any purpose.
The culprit is a qWarning() statement around line 449 in qtbase/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm .
I've attached a patch that activates the warning only when Qt is in debug build.
Attachments
Issue Links
- resulted from
-
QTBUG-37165 Using a single Text element adds 2 seconds of startup time to a QML app
- Closed