• Home
  • Raw
  • Download

Lines Matching refs:pFont

87 int32_t GetSimilarityScore(FX_FONTDESCRIPTOR const* pFont,  in GetSimilarityScore()  argument
91 FontStyleIsSymbolic(pFont->dwFontStyles)) { in GetSimilarityScore()
95 FontStyleIsFixedPitch(pFont->dwFontStyles)) { in GetSimilarityScore()
98 if (FontStyleIsSerif(dwFontStyles) == FontStyleIsSerif(pFont->dwFontStyles)) in GetSimilarityScore()
100 if (FontStyleIsScript(dwFontStyles) == FontStyleIsScript(pFont->dwFontStyles)) in GetSimilarityScore()
176 FX_FONTDESCRIPTOR* pFont = FX_Alloc(FX_FONTDESCRIPTOR, 1); in GdiFontEnumProc() local
177 memset(pFont, 0, sizeof(FX_FONTDESCRIPTOR)); in GdiFontEnumProc()
178 pFont->uCharSet = lf.lfCharSet; in GdiFontEnumProc()
179 pFont->dwFontStyles = GetGdiFontStyles(lf); in GdiFontEnumProc()
180 FXSYS_wcsncpy(pFont->wsFontFace, (const wchar_t*)lf.lfFaceName, 31); in GdiFontEnumProc()
181 pFont->wsFontFace[31] = 0; in GdiFontEnumProc()
182 memcpy(&pFont->FontSignature, &lpntme->ntmFontSig, in GdiFontEnumProc()
184 reinterpret_cast<std::deque<FX_FONTDESCRIPTOR>*>(lParam)->push_back(*pFont); in GdiFontEnumProc()
185 FX_Free(pFont); in GdiFontEnumProc()
618 RetainPtr<CFGAS_GEFont> pFont = in LoadFont() local
620 if (!pFont) in LoadFont()
623 m_IFXFont2FileRead[pFont] = pFontStream; in LoadFont()
625 *pFaceCount = pFont->GetDevFont()->GetFace()->num_faces; in LoadFont()
626 return pFont; in LoadFont()
716 for (const auto& pFont : m_InstalledFonts) { in MatchFonts() local
718 CalcPenalty(pFont.get(), wCodePage, dwFontStyles, FontName, wcUnicode); in MatchFonts()
721 pMatchedFonts->push_back({pFont.get(), nPenalty}); in MatchFonts()
803 auto pFont = pdfium::MakeUnique<CFX_FontDescriptor>(); in RegisterFace() local
804 pFont->m_dwFontStyles |= FXFT_Is_Face_Bold(pFace) ? FXFONT_BOLD : 0; in RegisterFace()
805 pFont->m_dwFontStyles |= FXFT_Is_Face_Italic(pFace) ? FXFONT_ITALIC : 0; in RegisterFace()
806 pFont->m_dwFontStyles |= GetFlags(pFace); in RegisterFace()
809 GetUSBCSB(pFace, pFont->m_dwUsb, pFont->m_dwCsb); in RegisterFace()
822 GetNames(table.empty() ? nullptr : table.data(), pFont->m_wsFamilyNames); in RegisterFace()
823 pFont->m_wsFamilyNames.push_back(ByteString(pFace->family_name).UTF8Decode()); in RegisterFace()
824 pFont->m_wsFaceName = in RegisterFace()
827 pFont->m_nFaceIndex = pFace->face_index; in RegisterFace()
828 m_InstalledFonts.push_back(std::move(pFont)); in RegisterFace()
972 RetainPtr<CFGAS_GEFont> pFont = in GetFontByCodePage() local
987 CFX_FontDescriptor* pDesc = (*sortedFontInfos)[0].pFont; in GetFontByCodePage()
988 RetainPtr<CFGAS_GEFont> pFont = in GetFontByCodePage() local
992 if (!pFont) in GetFontByCodePage()
995 pFont->SetLogicalFontStyle(dwFontStyles); in GetFontByCodePage()
996 pFontArray->push_back(pFont); in GetFontByCodePage()
997 return pFont; in GetFontByCodePage()
1038 RetainPtr<CFGAS_GEFont> pFont = in GetFontByUnicode() local
1040 if (!pFont) in GetFontByUnicode()
1043 pFont->SetLogicalFontStyle(dwFontStyles); in GetFontByUnicode()
1044 pFonts->push_back(pFont); in GetFontByUnicode()
1045 return pFont; in GetFontByUnicode()
1057 CFX_FontDescriptor* pDesc = info.pFont; in GetFontByUnicode()
1060 RetainPtr<CFGAS_GEFont> pFont = in GetFontByUnicode() local
1062 if (!pFont) in GetFontByUnicode()
1064 pFont->SetLogicalFontStyle(dwFontStyles); in GetFontByUnicode()
1065 pFonts->push_back(pFont); in GetFontByUnicode()
1066 return pFont; in GetFontByUnicode()
1074 bool CFGAS_FontMgr::VerifyUnicode(const RetainPtr<CFGAS_GEFont>& pFont, in VerifyUnicode() argument
1076 if (!pFont) in VerifyUnicode()
1079 FXFT_Face pFace = pFont->GetDevFont()->GetFace(); in VerifyUnicode()
1109 RetainPtr<CFGAS_GEFont> pFont = in LoadFont() local
1111 if (!pFont) in LoadFont()
1114 pFont->SetLogicalFontStyle(dwFontStyles); in LoadFont()
1115 pFontArray->push_back(pFont); in LoadFont()
1116 return pFont; in LoadFont()