Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
6.2.2
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:
- Run the attached example
Attachments
Issue Links
- relates to
-
QTBUG-129118 "DirectWrite: CreateFontFaceFromHDC() failed" Qt warnigns
- Closed