summaryrefslogtreecommitdiff
path: root/xfa/fgas/font/cfgas_pdffontmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fgas/font/cfgas_pdffontmgr.cpp')
-rw-r--r--xfa/fgas/font/cfgas_pdffontmgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fgas/font/cfgas_pdffontmgr.cpp b/xfa/fgas/font/cfgas_pdffontmgr.cpp
index 80d6196d4e..4220d4d6c5 100644
--- a/xfa/fgas/font/cfgas_pdffontmgr.cpp
+++ b/xfa/fgas/font/cfgas_pdffontmgr.cpp
@@ -80,7 +80,7 @@ RetainPtr<CFGAS_GEFont> CFGAS_PDFFontMgr::GetFont(
if (it != m_FontMap.end())
return it->second;
- ByteString bsPsName = ByteString::FromUnicode(WideString(wsFontFamily));
+ ByteString bsPsName = WideString(wsFontFamily).ToDefANSI();
bool bBold = FontStyleIsBold(dwFontStyles);
bool bItalic = FontStyleIsItalic(dwFontStyles);
ByteString strFontName = PsNameToFontName(bsPsName, bBold, bItalic);