Index: core/fxge/ge/fx_ge_font.cpp |
diff --git a/core/fxge/ge/fx_ge_font.cpp b/core/fxge/ge/fx_ge_font.cpp |
index 3bb1580d014544f976029f80b638c7dac6c006a8..fd6f8a2cf803ead6ea89d97b96ab22e2df52d6f8 100644 |
--- a/core/fxge/ge/fx_ge_font.cpp |
+++ b/core/fxge/ge/fx_ge_font.cpp |
@@ -456,7 +456,8 @@ uint32_t CFX_UnicodeEncoding::GlyphFromCharCode(uint32_t charcode) { |
if (FXFT_Select_Charmap(face, FXFT_ENCODING_UNICODE) == 0) |
return FXFT_Get_Char_Index(face, charcode); |
- if (m_pFont->GetSubstFont() && m_pFont->GetSubstFont()->m_Charset == 2) { |
+ if (m_pFont->GetSubstFont() && |
+ m_pFont->GetSubstFont()->m_Charset == FXFONT_SYMBOL_CHARSET) { |
uint32_t index = 0; |
if (FXFT_Select_Charmap(face, FXFT_ENCODING_MS_SYMBOL) == 0) |
index = FXFT_Get_Char_Index(face, charcode); |