Annoying font/FontLoader warning in QtQuick2.0 (Qt5.7)
Unsolved
QML and Qt Quick
-
Recently I have imported my application written in Qt5.4 to Qt5.7. When I run the app, the output pane of the qtCreator gives following warning that I've never seen it before in Qt5.4:
DirectWrite: CreateFontFaceFromHDC() failed () for QFontDef(Family="", pointsize=8.25, pixelsize=11, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("MS Sans Serif", lfWidth=0, lfHeight=-11) dpi=96
In my qml file, I've used following Text component that gives above warning:
Text { id: txtNumberical color: labelColor; font.pixelSize: fontSize font.family: digitFont.name anchors.verticalCenter: txtDigitTemplate.verticalCenter; font.italic: false }
And the font loader is:
FontLoader { id: digitFont; source: "../../Fonts/Cedders.otf"; }
How can I get rid of this annoying warning?
-
Please report a bug at bugreports.qt.io.