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:

                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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.