Lines Matching refs:nCharset
91 int32_t nCharset, in GetWordFontIndex() argument
98 if (nCharset == DEFAULT_CHARSET || pData->nCharset == SYMBOL_CHARSET || in GetWordFontIndex()
99 nCharset == pData->nCharset) { in GetWordFontIndex()
107 GetFontIndex(GetNativeFontName(nCharset), nCharset, TRUE); in GetWordFontIndex()
135 CFX_ByteString CPWL_FontMap::GetNativeFontName(int32_t nCharset) { in GetNativeFontName() argument
139 if (pData->nCharset == nCharset) in GetNativeFontName()
144 CFX_ByteString sNew = GetNativeFont(nCharset); in GetNativeFontName()
148 pNewData->nCharset = nCharset; in GetNativeFontName()
186 int32_t nCharset) { in FindFont() argument
189 if (nCharset == DEFAULT_CHARSET || nCharset == pData->nCharset) { in FindFont()
200 int32_t nCharset, in GetFontIndex() argument
202 int32_t nFontIndex = FindFont(EncodeFontAlias(sFontName, nCharset), nCharset); in GetFontIndex()
209 pFont = FindFontSameCharset(sAlias, nCharset); in GetFontIndex()
213 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset); in GetFontIndex()
214 sAlias = EncodeFontAlias(sTemp, nCharset); in GetFontIndex()
217 return AddFontData(pFont, sAlias, nCharset); in GetFontIndex()
220 int32_t CPWL_FontMap::GetPWLFontIndex(FX_WORD word, int32_t nCharset) { in GetPWLFontIndex() argument
225 if (pData->nCharset == nCharset) { in GetPWLFontIndex()
237 CFX_ByteString sAlias = EncodeFontAlias("Arial_Chrome", nCharset); in GetPWLFontIndex()
240 return AddFontData(pNewFont, sAlias, nCharset); in GetPWLFontIndex()
244 int32_t nCharset) { in FindFontSameCharset() argument
250 int32_t nCharset) { in AddFontData() argument
254 pNewData->nCharset = nCharset; in AddFontData()
274 CFX_ByteString CPWL_FontMap::GetNativeFont(int32_t nCharset) { in GetNativeFont() argument
275 if (nCharset == DEFAULT_CHARSET) in GetNativeFont()
276 nCharset = GetNativeCharset(); in GetNativeFont()
278 CFX_ByteString sFontName = GetDefaultFontByCharset(nCharset); in GetNativeFont()
280 if (m_pSystemHandler->FindNativeTrueTypeFont(nCharset, sFontName)) in GetNativeFont()
283 sFontName = m_pSystemHandler->GetNativeTrueTypeFont(nCharset); in GetNativeFont()
290 uint8_t nCharset) { in AddFontToDocument() argument
294 return AddSystemFont(pDoc, sFontName, nCharset); in AddFontToDocument()
316 uint8_t nCharset) { in AddSystemFont() argument
321 sFontName = GetNativeFont(nCharset); in AddSystemFont()
322 if (nCharset == DEFAULT_CHARSET) in AddSystemFont()
323 nCharset = GetNativeCharset(); in AddSystemFont()
327 nCharset); in AddSystemFont()
333 int32_t nCharset) { in EncodeFontAlias() argument
335 sPostfix.Format("_%02X", nCharset); in EncodeFontAlias()
358 uint8_t nCharset = ANSI_CHARSET; in GetNativeCharset() local
362 nCharset = SHIFTJIS_CHARSET; in GetNativeCharset()
365 nCharset = GB2312_CHARSET; in GetNativeCharset()
368 nCharset = GB2312_CHARSET; in GetNativeCharset()
371 nCharset = ANSI_CHARSET; in GetNativeCharset()
374 nCharset = THAI_CHARSET; in GetNativeCharset()
377 nCharset = HANGUL_CHARSET; in GetNativeCharset()
380 nCharset = ANSI_CHARSET; in GetNativeCharset()
383 nCharset = EASTEUROPE_CHARSET; in GetNativeCharset()
386 nCharset = RUSSIAN_CHARSET; in GetNativeCharset()
389 nCharset = GREEK_CHARSET; in GetNativeCharset()
392 nCharset = TURKISH_CHARSET; in GetNativeCharset()
395 nCharset = HEBREW_CHARSET; in GetNativeCharset()
398 nCharset = ARABIC_CHARSET; in GetNativeCharset()
401 nCharset = BALTIC_CHARSET; in GetNativeCharset()
404 nCharset = VIETNAMESE_CHARSET; in GetNativeCharset()
407 nCharset = JOHAB_CHARSET; in GetNativeCharset()
410 return nCharset; in GetNativeCharset()
425 CFX_ByteString CPWL_FontMap::GetDefaultFontByCharset(int32_t nCharset) { in GetDefaultFontByCharset() argument
428 if (nCharset == defaultTTFMap[i].charset) in GetDefaultFontByCharset()