• Home
  • Raw
  • Download

Lines Matching refs:nCharset

82                                        int32_t nCharset,  in GetWordFontIndex()  argument
89 if (nCharset == FX_CHARSET_Default || in GetWordFontIndex()
90 pData->nCharset == FX_CHARSET_Symbol || nCharset == pData->nCharset) { in GetWordFontIndex()
98 GetFontIndex(GetNativeFontName(nCharset), nCharset, true); in GetWordFontIndex()
125 ByteString CPWL_FontMap::GetNativeFontName(int32_t nCharset) { in GetNativeFontName() argument
127 if (pData && pData->nCharset == nCharset) in GetNativeFontName()
131 ByteString sNew = GetNativeFont(nCharset); in GetNativeFontName()
136 pNewData->nCharset = nCharset; in GetNativeFontName()
160 int32_t CPWL_FontMap::FindFont(const ByteString& sFontName, int32_t nCharset) { in FindFont() argument
164 (nCharset == FX_CHARSET_Default || nCharset == pData->nCharset) && in FindFont()
174 int32_t nCharset, in GetFontIndex() argument
176 int32_t nFontIndex = FindFont(EncodeFontAlias(sFontName, nCharset), nCharset); in GetFontIndex()
181 CPDF_Font* pFont = bFind ? FindFontSameCharset(&sAlias, nCharset) : nullptr; in GetFontIndex()
184 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset); in GetFontIndex()
185 sAlias = EncodeFontAlias(sTemp, nCharset); in GetFontIndex()
188 return AddFontData(pFont, sAlias, nCharset); in GetFontIndex()
192 int32_t nCharset) { in FindFontSameCharset() argument
198 int32_t nCharset) { in AddFontData() argument
202 pNewData->nCharset = nCharset; in AddFontData()
209 ByteString CPWL_FontMap::GetNativeFont(int32_t nCharset) { in GetNativeFont() argument
210 if (nCharset == FX_CHARSET_Default) in GetNativeFont()
211 nCharset = GetNativeCharset(); in GetNativeFont()
213 ByteString sFontName = GetDefaultFontByCharset(nCharset); in GetNativeFont()
222 uint8_t nCharset) { in AddFontToDocument() argument
226 return AddSystemFont(pDoc, sFontName, nCharset); in AddFontToDocument()
248 uint8_t nCharset) { in AddSystemFont() argument
253 sFontName = GetNativeFont(nCharset); in AddSystemFont()
254 if (nCharset == FX_CHARSET_Default) in AddSystemFont()
255 nCharset = GetNativeCharset(); in AddSystemFont()
258 nCharset); in AddSystemFont()
262 int32_t nCharset) { in EncodeFontAlias() argument
263 return EncodeFontAlias(sFontName) + ByteString::Format("_%02X", nCharset); in EncodeFontAlias()
277 uint8_t nCharset = FX_CHARSET_ANSI; in GetNativeCharset() local
281 nCharset = FX_CHARSET_ShiftJIS; in GetNativeCharset()
284 nCharset = FX_CHARSET_ChineseSimplified; in GetNativeCharset()
287 nCharset = FX_CHARSET_ChineseTraditional; in GetNativeCharset()
290 nCharset = FX_CHARSET_ANSI; in GetNativeCharset()
293 nCharset = FX_CHARSET_Thai; in GetNativeCharset()
296 nCharset = FX_CHARSET_Hangul; in GetNativeCharset()
299 nCharset = FX_CHARSET_ANSI; in GetNativeCharset()
302 nCharset = FX_CHARSET_MSWin_EasternEuropean; in GetNativeCharset()
305 nCharset = FX_CHARSET_MSWin_Cyrillic; in GetNativeCharset()
308 nCharset = FX_CHARSET_MSWin_Greek; in GetNativeCharset()
311 nCharset = FX_CHARSET_MSWin_Turkish; in GetNativeCharset()
314 nCharset = FX_CHARSET_MSWin_Hebrew; in GetNativeCharset()
317 nCharset = FX_CHARSET_MSWin_Arabic; in GetNativeCharset()
320 nCharset = FX_CHARSET_MSWin_Baltic; in GetNativeCharset()
323 nCharset = FX_CHARSET_MSWin_Vietnamese; in GetNativeCharset()
326 nCharset = FX_CHARSET_Johab; in GetNativeCharset()
329 return nCharset; in GetNativeCharset()
347 ByteString CPWL_FontMap::GetDefaultFontByCharset(int32_t nCharset) { in GetDefaultFontByCharset() argument
350 if (nCharset == defaultTTFMap[i].charset) in GetDefaultFontByCharset()