Lines Matching refs:pFont
31 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont()
32 if (!pFont->LoadFontInternal(pszFontFamily, dwFontStyles, wCodePage)) in LoadFont()
34 return pFont; in LoadFont()
41 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont() local
42 if (!pFont->LoadFontInternal(pExternalFont)) in LoadFont()
44 return pFont; in LoadFont()
51 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont() local
52 if (!pFont->LoadFontInternal(std::move(pInternalFont))) in LoadFont()
54 return pFont; in LoadFont()
169 RetainPtr<CFGAS_GEFont> pFont; in GetCharWidth() local
171 std::tie(iGlyph, pFont) = GetGlyphIndexAndFont(wUnicode, true); in GetCharWidth()
172 if (iGlyph != 0xFFFF && pFont) { in GetCharWidth()
173 if (pFont.Get() == this) { in GetCharWidth()
177 } else if (pFont->GetCharWidth(wUnicode, iWidth)) { in GetCharWidth()
195 RetainPtr<CFGAS_GEFont> pFont; in GetCharBBox() local
197 std::tie(iGlyph, pFont) = GetGlyphIndexAndFont(wUnicode, true); in GetCharBBox()
198 if (!pFont || iGlyph == 0xFFFF) in GetCharBBox()
201 if (pFont.Get() != this) in GetCharBBox()
202 return pFont->GetCharBBox(wUnicode, bbox); in GetCharBBox()
264 RetainPtr<CFGAS_GEFont> pFont = in GetGlyphIndexAndFont() local
267 if (!pFont) in GetGlyphIndexAndFont()
268 pFont = m_pFontMgr->GetFontByUnicode(wUnicode, GetFontStyles(), nullptr); in GetGlyphIndexAndFont()
270 if (!pFont || pFont.Get() == this) // Avoids direct cycles below. in GetGlyphIndexAndFont()
273 m_FontMapper[wUnicode] = pFont; in GetGlyphIndexAndFont()
274 m_SubstFonts.push_back(pFont); in GetGlyphIndexAndFont()
277 std::tie(iGlyphIndex, font) = pFont->GetGlyphIndexAndFont(wUnicode, false); in GetGlyphIndexAndFont()
281 return {(iGlyphIndex | (m_SubstFonts.size() << 24)), pFont}; in GetGlyphIndexAndFont()