Index: xfa/fgas/font/fgas_gefont.cpp |
diff --git a/xfa/fgas/font/fgas_gefont.cpp b/xfa/fgas/font/fgas_gefont.cpp |
index 8a6ff28b43a0a3f1b15843c264d5a7c33f3484de..7fa352c23c1a7838f6adb1e38bcc50e1b94b0f39 100644 |
--- a/xfa/fgas/font/fgas_gefont.cpp |
+++ b/xfa/fgas/font/fgas_gefont.cpp |
@@ -438,12 +438,9 @@ int32_t CFGAS_GEFont::GetGlyphIndex(FX_WCHAR wUnicode, |
if (m_pFontMgr && bRecursive) { |
CFX_WideString wsFamily; |
GetFamilyName(wsFamily); |
-#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
- CFGAS_GEFont* pFont = m_pFontMgr->GetDefFontByUnicode( |
- wUnicode, GetFontStyles(), wsFamily.c_str()); |
-#else |
CFGAS_GEFont* pFont = m_pFontMgr->GetFontByUnicode( |
wUnicode, GetFontStyles(), wsFamily.c_str()); |
+#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
if (!pFont) |
pFont = m_pFontMgr->GetFontByUnicode(wUnicode, GetFontStyles(), nullptr); |
#endif |