Lines Matching refs:wCodePage
69 if (pParams->wCodePage != 0xFFFF) { in MatchDefaultFont()
70 if (FX_GetCodePageFromCharset(font.uCharSet) != pParams->wCodePage) in MatchDefaultFont()
114 uint16_t wCodePage, in GetFontByCodePage() argument
117 uint32_t dwHash = FGAS_GetFontHashCode(wCodePage, dwFontStyles); in GetFontByCodePage()
120 return it->second ? LoadFont(it->second, dwFontStyles, wCodePage) : nullptr; in GetFontByCodePage()
123 FindFont(pszFontFamily, dwFontStyles, true, wCodePage); in GetFontByCodePage()
125 pFD = FindFont(nullptr, dwFontStyles, true, wCodePage); in GetFontByCodePage()
127 pFD = FindFont(nullptr, dwFontStyles, false, wCodePage); in GetFontByCodePage()
132 CFGAS_GEFont::LoadFont(pFD->wsFontFace, dwFontStyles, wCodePage, this); in GetFontByCodePage()
138 dwHash = FGAS_GetFontFamilyHash(pFD->wsFontFace, dwFontStyles, wCodePage); in GetFontByCodePage()
140 return LoadFont(pFont, dwFontStyles, wCodePage); in GetFontByCodePage()
155 return it->second ? LoadFont(it->second, dwFontStyles, pRet->wCodePage) in GetFontByUnicode()
159 FindFont(pszFontFamily, dwFontStyles, false, pRet->wCodePage, in GetFontByUnicode()
162 pFD = FindFont(nullptr, dwFontStyles, false, pRet->wCodePage, in GetFontByUnicode()
168 uint16_t wCodePage = FX_GetCodePageFromCharset(pFD->uCharSet); in GetFontByUnicode() local
171 CFGAS_GEFont::LoadFont(pFontFace, dwFontStyles, wCodePage, this); in GetFontByUnicode()
177 m_CPFonts[FGAS_GetFontHashCode(wCodePage, dwFontStyles)] = pFont; in GetFontByUnicode()
178 m_FamilyFonts[FGAS_GetFontFamilyHash(pFontFace, dwFontStyles, wCodePage)] = in GetFontByUnicode()
180 return LoadFont(pFont, dwFontStyles, wCodePage); in GetFontByUnicode()
186 uint16_t wCodePage) { in LoadFont() argument
189 FGAS_GetFontFamilyHash(pszFontFamily, dwFontStyles, wCodePage); in LoadFont()
192 return it->second ? LoadFont(it->second, dwFontStyles, wCodePage) : nullptr; in LoadFont()
195 FindFont(pszFontFamily, dwFontStyles, true, wCodePage); in LoadFont()
197 pFD = FindFont(pszFontFamily, dwFontStyles, false, wCodePage); in LoadFont()
201 if (wCodePage == 0xFFFF) in LoadFont()
202 wCodePage = FX_GetCodePageFromCharset(pFD->uCharSet); in LoadFont()
205 CFGAS_GEFont::LoadFont(pFD->wsFontFace, dwFontStyles, wCodePage, this); in LoadFont()
211 dwHash = FGAS_GetFontHashCode(wCodePage, dwFontStyles); in LoadFont()
213 return LoadFont(pFont, dwFontStyles, wCodePage); in LoadFont()
219 uint16_t wCodePage) { in LoadFont() argument
224 (void*)(uintptr_t)wCodePage}; in LoadFont()
231 CFX_RetainPtr<CFGAS_GEFont> pFont = pSrcFont->Derive(dwFontStyles, wCodePage); in LoadFont()
268 uint16_t wCodePage, in FindFont() argument
275 params.wCodePage = wCodePage; in FindFont()
374 uint16_t wCodePage; member
391 uint16_t FX_GetCodePageBit(uint16_t wCodePage) { in FX_GetCodePageBit() argument
393 if (g_Bit2CodePage[i].wCodePage == wCodePage) in FX_GetCodePageBit()
621 uint16_t wCodePage) { in LoadFont() argument
622 return GetFontByCodePage(wCodePage, dwFontStyles, pszFontFamily); in LoadFont()
626 uint16_t wCodePage, in GetFontByCodePage() argument
630 bsHash.Format("%d, %d", wCodePage, dwFontStyles); in GetFontByCodePage()
642 MatchFonts(sortedFontInfos, wCodePage, dwFontStyles, in GetFontByCodePage()
668 uint16_t wCodePage = x ? x->wCodePage : 0xFFFF; in GetFontByUnicode() local
671 if (wCodePage == 0xFFFF) in GetFontByUnicode()
672 bsHash.Format("%d, %d, %d", wCodePage, wBitField, dwFontStyles); in GetFontByUnicode()
674 bsHash.Format("%d, %d", wCodePage, dwFontStyles); in GetFontByUnicode()
687 MatchFonts(sortedFontInfos, wCodePage, dwFontStyles, in GetFontByUnicode()
878 uint16_t wCodePage, in MatchFonts() argument
885 CalcPenalty(pFont.get(), wCodePage, dwFontStyles, FontName, wcUnicode); in MatchFonts()
896 uint16_t wCodePage, in CalcPenalty() argument
944 uint16_t wBit = (wCodePage == 0 || wCodePage == 0xFFFF) in CalcPenalty()
946 : FX_GetCodePageBit(wCodePage); in CalcPenalty()