Lines Matching defs:pFont

32   auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr);
33 if (!pFont->LoadFontInternal(pszFontFamily, dwFontStyles, wCodePage))
35 return pFont;
42 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr);
43 if (!pFont->LoadFontInternal(pExternalFont))
45 return pFont;
52 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr);
53 if (!pFont->LoadFontInternal(std::move(pInternalFont)))
55 return pFont;
63 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr);
64 if (pFont->LoadFontInternal(pBuffer, iLength))
66 return pFont;
74 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr);
75 if (!pFont->LoadFontInternal(pFontStream, bSaveStream))
77 return pFont;
228 CFX_RetainPtr<CFGAS_GEFont> pFont(this);
230 return pFont;
231 return pdfium::MakeRetain<CFGAS_GEFont>(pFont, dwFontStyles);
287 CFX_RetainPtr<CFGAS_GEFont> pFont;
288 int32_t iGlyph = GetGlyphIndex(wUnicode, true, &pFont, bCharCode);
289 if (iGlyph != 0xFFFF && pFont) {
290 if (pFont.Get() == this) {
294 } else if (pFont->GetCharWidthInternal(wUnicode, iWidth, false,
322 CFX_RetainPtr<CFGAS_GEFont> pFont;
323 int32_t iGlyph = GetGlyphIndex(wUnicode, true, &pFont, bCharCode);
324 if (!pFont || iGlyph == 0xFFFF)
327 if (pFont.Get() != this)
328 return pFont->GetCharBBoxInternal(wUnicode, bbox, false, bCharCode);
392 CFX_RetainPtr<CFGAS_GEFont> pFont =
395 if (!pFont)
396 pFont = m_pFontMgr->GetFontByUnicode(wUnicode, GetFontStyles(), nullptr);
398 if (!pFont || pFont.Get() == this) // Avoids direct cycles below.
401 m_FontMapper[wUnicode] = pFont;
402 m_SubstFonts.push_back(pFont);
403 iGlyphIndex = pFont->GetGlyphIndex(wUnicode, false, nullptr, bCharCode);
408 *ppFont = pFont;