Please nominate your Qt Champions for 2021!

Annoying font/FontLoader warning in QtQuick2.0 (Qt5.7)

  • 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:

                    id: txtNumberical
                    color: labelColor;
                    font.pixelSize: fontSize
                    anchors.verticalCenter: txtDigitTemplate.verticalCenter;
                    font.italic: false

    And the font loader is:

            id: digitFont;
            source: "../../Fonts/Cedders.otf";

    How can I get rid of this annoying warning?

  • Please report a bug at