Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.5, 6.3.1, 6.4.0 Beta1, 6.4
-
6.2.1, 6.2.2, 6.2.3
-
None
-
-
69d525a6fa (qt/qtbase/dev) 69d525a6fa (qt/tqtc-qtbase/dev) fcd5a02886 (qt/qtbase/6.3) fcd5a02886 (qt/tqtc-qtbase/6.3) fcd5a02886 (qt/tqtc-qtbase/6.3.0) 64dd5a8183 (qt/tqtc-qtbase/dev) 36427480dd (qt/qtbase/6.3) 34d9da8371 (qt/qtbase/6.2)
Description
A simple usage of FontMetrics generates warning:
qt.qpa.fonts: Populating font family aliases took 75 ms. Replace uses of missing font family ".AppleSystemUIFont" with one that exists to avoid this cost.
For example, this simple code generates warning right on app start:
import QtQuick Window { width: 640 height: 480 visible: true FontMetrics { id: fm font.italic: true // comment this to stop warning readonly property int textWidth: fm.advanceWidth('test') } }
Attachments
For Gerrit Dashboard: QTBUG-98369 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
400472,5 | Avoid populating font family aliases if family matched | dev | qt/qtbase | Status: MERGED | +2 | 0 |
401148,2 | Avoid populating font family aliases if family matched | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
401149,1 | Avoid populating font family aliases if family matched | 6.2 | qt/qtbase | Status: ABANDONED | +2 | 0 |
401150,1 | Avoid populating font family aliases if family matched | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: ABANDONED | 0 | 0 |
403315,2 | CoreText: Avoid populating font family aliases if family was populated | dev | qt/qtbase | Status: MERGED | +2 | 0 |
403733,2 | CoreText: Avoid populating font family aliases if family was populated | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
403734,2 | CoreText: Avoid populating font family aliases if family was populated | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
403736,3 | CoreText: Avoid populating font family aliases if family was populated | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |