Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79140

[REG 5.13.0 -> 5.14.0]OTF fonts don't work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P1: Critical P1: Critical
    • 5.15.4
    • 5.14.0 Beta 1, 5.14.0 Beta3, 5.14.0 RC1, 5.14
    • None
    • mingw or vs2017
    • Windows

      When using an embedded OTF font in QML Text element i get these erros : 

      DirectWrite: CreateFontFaceFromHDC() failed ((Indicates an error in an input file such as a font file.) for QFontDef(Family="MS Shell Dlg 2", pointsize=8.25, pixelsize=11, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("Roboto", lfWidth=0, lfHeight=-11) dpi=96

      DirectWrite: CreateFontFaceFromHDC() failed ((Indicates an error in an input file such as a font file.) for QFontDef(Family="MS Shell Dlg 2", pointsize=8.25, pixelsize=11, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("Noto", lfWidth=0, lfHeight=-11) dpi=96

      Only happens since Qt 5.14, works correctly on 5.13.0.

       

      Tried with different otf fonts and different projects, still same issue.

      When this warning happens, the Text rendering is strange, with random character spacing etc...

        1. main.cpp
          2 kB
        2. TestFont.zip
          39 kB
        3. TestMainWindow.h
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            AlGrenadine Alexandre GRANVAUD
            Votes:
            0 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:
              Resolved: