Home | History | Annotate | Download | only in font

Lines Matching defs:pFont

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