Lines Matching refs:dwFontStyles

29                            uint32_t dwFontStyles) {  in GetSimilarityScore()  argument
31 if ((dwFontStyles & FX_FONTSTYLE_Symbolic) == in GetSimilarityScore()
32 (pFont->dwFontStyles & FX_FONTSTYLE_Symbolic)) { in GetSimilarityScore()
35 if ((dwFontStyles & FX_FONTSTYLE_FixedPitch) == in GetSimilarityScore()
36 (pFont->dwFontStyles & FX_FONTSTYLE_FixedPitch)) { in GetSimilarityScore()
39 if ((dwFontStyles & FX_FONTSTYLE_Serif) == in GetSimilarityScore()
40 (pFont->dwFontStyles & FX_FONTSTYLE_Serif)) { in GetSimilarityScore()
43 if ((dwFontStyles & FX_FONTSTYLE_Script) == in GetSimilarityScore()
44 (pFont->dwFontStyles & FX_FONTSTYLE_Script)) { in GetSimilarityScore()
57 if ((font.dwFontStyles & FX_FONTSTYLE_BoldItalic) == in MatchDefaultFont()
81 if ((font.dwFontStyles & 0x0F) == (pParams->dwFontStyles & 0x0F)) in MatchDefaultFont()
89 int32_t iSimilarValue = GetSimilarityScore(&font, pParams->dwFontStyles); in MatchDefaultFont()
115 uint32_t dwFontStyles, 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()
145 uint32_t dwFontStyles, in GetFontByUnicode() argument
152 FGAS_GetFontFamilyHash(pszFontFamily, dwFontStyles, pRet->wBitField); in GetFontByUnicode()
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()
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()
185 uint32_t dwFontStyles, 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()
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()
218 uint32_t dwFontStyles, in LoadFont() argument
220 if (pSrcFont->GetFontStyles() == dwFontStyles) in LoadFont()
223 void* buffer[3] = {pSrcFont.Get(), (void*)(uintptr_t)dwFontStyles, in LoadFont()
231 CFX_RetainPtr<CFGAS_GEFont> pFont = pSrcFont->Derive(dwFontStyles, wCodePage); in LoadFont()
266 uint32_t dwFontStyles, in FindFont() argument
277 params.dwFontStyles = dwFontStyles; in FindFont()
327 pFont->dwFontStyles = FX_GetGdiFontStyles(lf); in FX_GdiFontEnumProc()
620 uint32_t dwFontStyles, in LoadFont() argument
622 return GetFontByCodePage(wCodePage, dwFontStyles, pszFontFamily); in LoadFont()
627 uint32_t dwFontStyles, in GetFontByCodePage() argument
630 bsHash.Format("%d, %d", wCodePage, dwFontStyles); in GetFontByCodePage()
642 MatchFonts(sortedFontInfos, wCodePage, dwFontStyles, in GetFontByCodePage()
655 pFont->SetLogicalFontStyle(dwFontStyles); in GetFontByCodePage()
662 uint32_t dwFontStyles, in GetFontByUnicode() argument
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()
699 pFont->SetLogicalFontStyle(dwFontStyles); in GetFontByUnicode()
879 uint32_t dwFontStyles, in MatchFonts() argument
885 CalcPenalty(pFont.get(), wCodePage, dwFontStyles, FontName, wcUnicode); in MatchFonts()
897 uint32_t dwFontStyles, in CalcPenalty() argument
930 uint32_t dwStyleMask = pInstalled->m_dwFontStyles ^ dwFontStyles; in CalcPenalty()