• Home
  • Raw
  • Download

Lines Matching refs:nCharset

91 FX_INT32 CPWL_FontMap::GetWordFontIndex(FX_WORD word, FX_INT32 nCharset, FX_INT32 nFontIndex)  in GetWordFontIndex()  argument
102 if (nCharset == DEFAULT_CHARSET || in GetWordFontIndex()
103 pData->nCharset == SYMBOL_CHARSET || in GetWordFontIndex()
104 nCharset == pData->nCharset) in GetWordFontIndex()
116 nNewFontIndex = this->GetFontIndex(GetNativeFontName(nCharset), nCharset, TRUE); in GetWordFontIndex()
156 CFX_ByteString CPWL_FontMap::GetNativeFontName(FX_INT32 nCharset) in GetNativeFontName() argument
163 if (pData->nCharset == nCharset) in GetNativeFontName()
168 CFX_ByteString sNew = GetNativeFont(nCharset); in GetNativeFontName()
173 pNewData->nCharset = nCharset; in GetNativeFontName()
235 FX_INT32 CPWL_FontMap::FindFont(const CFX_ByteString& sFontName, FX_INT32 nCharset) in FindFont() argument
241 if (nCharset == DEFAULT_CHARSET || nCharset == pData->nCharset) in FindFont()
252 FX_INT32 CPWL_FontMap::GetFontIndex(const CFX_ByteString& sFontName, FX_INT32 nCharset, FX_BOOL bFi… in GetFontIndex() argument
254 FX_INT32 nFontIndex = FindFont(EncodeFontAlias(sFontName, nCharset), nCharset); in GetFontIndex()
264 pFont = FindFontSameCharset(sAlias, nCharset); in GetFontIndex()
269 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset); in GetFontIndex()
279 sAlias = EncodeFontAlias(sTemp, nCharset); in GetFontIndex()
285 return AddFontData(pFont, sAlias, nCharset); in GetFontIndex()
288 FX_INT32 CPWL_FontMap::GetPWLFontIndex(FX_WORD word, FX_INT32 nCharset) in GetPWLFontIndex() argument
296 if (pData->nCharset == nCharset) in GetPWLFontIndex()
316 CFX_ByteString sAlias = EncodeFontAlias("Arial_Chrome", nCharset); in GetPWLFontIndex()
318 CFX_ByteString sAlias = EncodeFontAlias("Arial_Foxit", nCharset); in GetPWLFontIndex()
322 return AddFontData(pNewFont, sAlias, nCharset); in GetPWLFontIndex()
325 CPDF_Font* CPWL_FontMap::FindFontSameCharset(CFX_ByteString& sFontAlias, FX_INT32 nCharset) in FindFontSameCharset() argument
330 …32 CPWL_FontMap::AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, FX_INT32 nCharset) in AddFontData() argument
335 pNewData->nCharset = nCharset; in AddFontData()
359 CFX_ByteString CPWL_FontMap::GetNativeFont(FX_INT32 nCharset) in GetNativeFont() argument
363 if (nCharset == DEFAULT_CHARSET) in GetNativeFont()
364 nCharset = GetNativeCharset(); in GetNativeFont()
366 sFontName = GetDefaultFontByCharset(nCharset); in GetNativeFont()
370 if (m_pSystemHandler->FindNativeTrueTypeFont(nCharset, sFontName)) in GetNativeFont()
373 sFontName = m_pSystemHandler->GetNativeTrueTypeFont(nCharset); in GetNativeFont()
379 …* CPWL_FontMap::AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, FX_BYTE nCharset) in AddFontToDocument() argument
384 return AddSystemFont(pDoc, sFontName, nCharset); in AddFontToDocument()
404 …Font* CPWL_FontMap::AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName, FX_BYTE nCharset) in AddSystemFont() argument
408 if (sFontName.IsEmpty()) sFontName = GetNativeFont(nCharset); in AddSystemFont()
409 if (nCharset == DEFAULT_CHARSET) nCharset = GetNativeCharset(); in AddSystemFont()
412 return m_pSystemHandler->AddNativeTrueTypeFontToPDF(pDoc, sFontName, nCharset); in AddSystemFont()
417 CFX_ByteString CPWL_FontMap::EncodeFontAlias(const CFX_ByteString& sFontName, FX_INT32 nCharset) in EncodeFontAlias() argument
420 sPostfix.Format("_%02X", nCharset); in EncodeFontAlias()
448 FX_BYTE nCharset = ANSI_CHARSET; in GetNativeCharset() local
453 nCharset = SHIFTJIS_CHARSET; in GetNativeCharset()
456 nCharset = GB2312_CHARSET; in GetNativeCharset()
459 nCharset = GB2312_CHARSET; in GetNativeCharset()
462 nCharset = ANSI_CHARSET; in GetNativeCharset()
465 nCharset = THAI_CHARSET; in GetNativeCharset()
468 nCharset = HANGUL_CHARSET; in GetNativeCharset()
471 nCharset = ANSI_CHARSET; in GetNativeCharset()
474 nCharset = EASTEUROPE_CHARSET; in GetNativeCharset()
477 nCharset = RUSSIAN_CHARSET; in GetNativeCharset()
480 nCharset = GREEK_CHARSET; in GetNativeCharset()
483 nCharset = TURKISH_CHARSET; in GetNativeCharset()
486 nCharset = HEBREW_CHARSET; in GetNativeCharset()
489 nCharset = ARABIC_CHARSET; in GetNativeCharset()
492 nCharset = BALTIC_CHARSET; in GetNativeCharset()
495 nCharset = VIETNAMESE_CHARSET; in GetNativeCharset()
498 nCharset = JOHAB_CHARSET; in GetNativeCharset()
501 return nCharset; in GetNativeCharset()
516 CFX_ByteString CPWL_FontMap::GetDefaultFontByCharset(FX_INT32 nCharset) in GetDefaultFontByCharset() argument
520 if (nCharset == defaultTTFMap[i].charset) in GetDefaultFontByCharset()