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') } }