diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/text/freetype/qfontengine_ft.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/text/freetype/qfontengine_ft.cpp b/src/gui/text/freetype/qfontengine_ft.cpp index 1c9a17a3e4..35b6fb3831 100644 --- a/src/gui/text/freetype/qfontengine_ft.cpp +++ b/src/gui/text/freetype/qfontengine_ft.cpp @@ -1510,6 +1510,8 @@ glyph_t QFontEngineFT::glyphIndex(uint ucs4) const FT_Set_Charmap(face, freetype->symbol_map); glyph = FT_Get_Char_Index(face, ucs4); FT_Set_Charmap(face, freetype->unicode_map); + if (!glyph && symbol && ucs4 < 0x100) + glyph = FT_Get_Char_Index(face, ucs4 + 0xf000); } } if (ucs4 < QFreetypeFace::cmapCacheSize) @@ -1553,6 +1555,8 @@ bool QFontEngineFT::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs FT_Set_Charmap(face, freetype->symbol_map); glyph = FT_Get_Char_Index(face, uc); FT_Set_Charmap(face, freetype->unicode_map); + if (!glyph && symbol && uc < 0x100) + glyph = FT_Get_Char_Index(face, uc + 0xf000); } glyphs->glyphs[glyph_pos] = glyph; if (uc < QFreetypeFace::cmapCacheSize) |