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

Error when attempting to use some unicode characters: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.)"

    XMLWordPrintable

Details

    • Windows

    Description

      Attempting to use material designs icons font causes errors with certain unicode characters. In the attached example using e.g. \uF196C results in a bunch of errors:

      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="8514oem", pointsize=75, pixelsize=20, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("8514oem", lfWidth=0, lfHeight=-20) dpi=144
      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="Fixedsys", pointsize=75, pixelsize=20, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("Fixedsys", lfWidth=0, lfHeight=-20) dpi=144
      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="Modern", pointsize=75, pixelsize=55, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("Modern", lfWidth=0, lfHeight=-55) dpi=144
      DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="MS Serif", pointsize=75, pixelsize=43, styleHint=5, weight=400, stretch=100, hintingPreference=0) LOGFONT("MS Serif", lfWidth=0, lfHeight=-43) dpi=144
      

      Using freetype font engine gets rid of the errors, however, the actual glyph used with either of the font engines seems incorrect.

      Steps to reproduce the problem:

      1. Run the attached example

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim MÃ¥rten Nordheim
            miikapernu Miika Pernu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes