Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.7, 6.8.1
-
None
Description
https://github.com/qt/qtbase/blob/v6.8.1/src/gui/text/qtextodfwriter.cpp#L674 is:
writer.writeAttribute(foNS, QString::fromLatin1("font-family"), QString::fromLatin1("Sans")); // Qt default
If this line is triggered on macOS, then we could see a debug log like this:
qt.qpa.fonts: Populating font family aliases took 159 ms. Replace uses of missing font family "Sans" with one that exists to avoid this cost.
Suggestion
Follow QTBUG-123416 and replace "Sans" with "Arial", or use a default font option from the platform theme plugin.
Attachments
Issue Links
- relates to
-
QTBUG-123416 [Qt Virtual Keyboard] Built-in style uses font family that doesn't exist on all platforms
-
- Closed
-