Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Annoying font/FontLoader warning in QtQuick2.0 (Qt5.7)
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qt5.7qmlfonttext
2 Posts 2 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alizadeh91
    wrote on 20 Jul 2016, 06:00 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jpnurmi
      wrote on 27 Jul 2016, 16:47 last edited by
      #2

      Please report a bug at bugreports.qt.io.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved