diff options
Diffstat (limited to 'core/fxge/ge/cfx_fontmapper.cpp')
-rw-r--r-- | core/fxge/ge/cfx_fontmapper.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/fxge/ge/cfx_fontmapper.cpp b/core/fxge/ge/cfx_fontmapper.cpp index 1b79520373..02143ecc59 100644 --- a/core/fxge/ge/cfx_fontmapper.cpp +++ b/core/fxge/ge/cfx_fontmapper.cpp @@ -582,6 +582,15 @@ FXFT_Face CFX_FontMapper::FindSubstFont(const CFX_ByteString& name, bItalic = italic_angle != 0; weight = old_weight; } + if (family.Find("Narrow") > 0 || family.Find("Condensed") > 0) { +#if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ + family = "LiberationSansNarrow"; +#elif _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_ + family = "RobotoCondensed"; +#else + family = "ArialNarrow"; +#endif + } } else { pSubstFont->m_bSubstCJK = true; if (nStyle) |