Home
last modified time | relevance | path

Searched refs:pFontDict (Results 1 – 21 of 21) sorted by relevance

/external/pdfium/core/fpdfapi/page/
Dcpdf_docpagedata.cpp177 RetainPtr<CPDF_Font> CPDF_DocPageData::GetFont(CPDF_Dictionary* pFontDict) { in GetFont() argument
178 if (!pFontDict) in GetFont()
181 auto it = m_FontMap.find(pFontDict); in GetFont()
186 CPDF_Font::Create(GetDocument(), pFontDict, this); in GetFont()
190 m_FontMap[pFontDict].Reset(pFont.Get()); in GetFont()
411 const CPDF_Dictionary* pFontDict = pFontStream->GetDict(); in GetFontFileStreamAcc() local
412 int32_t len1 = pFontDict->GetIntegerFor("Length1"); in GetFontFileStreamAcc()
413 int32_t len2 = pFontDict->GetIntegerFor("Length2"); in GetFontFileStreamAcc()
414 int32_t len3 = pFontDict->GetIntegerFor("Length3"); in GetFontFileStreamAcc()
470 CPDF_Dictionary* pFontDict = pBaseDict; in AddFont() local
[all …]
Dcpdf_docpagedata.h56 RetainPtr<CPDF_Font> GetFont(CPDF_Dictionary* pFontDict);
Dcpdf_streamcontentparser.cpp1149 CPDF_Dictionary* pFontDict = ToDictionary(FindResourceObj("Font", name)); in FindFont() local
1150 if (!pFontDict) { in FindFont()
1156 CPDF_DocPageData::FromDocument(m_pDocument.Get())->GetFont(pFontDict); in FindFont()
/external/pdfium/core/fpdfapi/font/
Dcpdf_font.cpp48 CPDF_Font::CPDF_Font(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict) in CPDF_Font() argument
50 m_pFontDict(pFontDict), in CPDF_Font()
51 m_BaseFontName(pFontDict->GetStringFor("BaseFont")) {} in CPDF_Font()
313 CPDF_Dictionary* pFontDict, in Create() argument
315 ByteString type = pFontDict->GetStringFor("Subtype"); in Create()
318 ByteString tag = pFontDict->GetStringFor("BaseFont").First(4); in Create()
322 pFontDict->GetDictFor("FontDescriptor"); in Create()
324 pFont = pdfium::MakeRetain<CPDF_CIDFont>(pDoc, pFontDict); in Create()
329 pFont = pdfium::MakeRetain<CPDF_TrueTypeFont>(pDoc, pFontDict); in Create()
331 pFont = pdfium::MakeRetain<CPDF_Type3Font>(pDoc, pFontDict, pFactory); in Create()
[all …]
Dcpdf_type3font.cpp27 CPDF_Dictionary* pFontDict, in CPDF_Type3Font() argument
29 : CPDF_SimpleFont(pDocument, pFontDict), m_pFormFactory(pFormFactory) { in CPDF_Type3Font()
Dcpdf_font.h64 CPDF_Dictionary* pFontDict,
129 CPDF_Font(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict);
Dcpdf_truetypefont.h26 CPDF_TrueTypeFont(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict);
Dcpdf_truetypefont.cpp19 CPDF_Dictionary* pFontDict) in CPDF_TrueTypeFont() argument
20 : CPDF_SimpleFont(pDocument, pFontDict) {} in CPDF_TrueTypeFont()
Dcpdf_type1font.h33 CPDF_Type1Font(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict);
Dcpdf_simplefont.h34 CPDF_SimpleFont(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict);
Dcpdf_type3font.h48 CPDF_Dictionary* pFontDict,
Dcpdf_simplefont.cpp32 CPDF_Dictionary* pFontDict) in CPDF_SimpleFont() argument
33 : CPDF_Font(pDocument, pFontDict) { in CPDF_SimpleFont()
Dcpdf_type1font.cpp67 CPDF_Dictionary* pFontDict) in CPDF_Type1Font() argument
68 : CPDF_SimpleFont(pDocument, pFontDict) { in CPDF_Type1Font()
Dcpdf_cidfont.h67 CPDF_CIDFont(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict);
Dcpdf_cidfont.cpp210 CPDF_CIDFont::CPDF_CIDFont(CPDF_Document* pDocument, CPDF_Dictionary* pFontDict) in CPDF_CIDFont() argument
211 : CPDF_Font(pDocument, pFontDict) { in CPDF_CIDFont()
/external/pdfium/fpdfsdk/
Dfpdf_edittext.cpp274 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadSimpleFont() local
275 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadSimpleFont()
276 pFontDict->SetNewFor<CPDF_Name>( in LoadSimpleFont()
281 pFontDict->SetNewFor<CPDF_Name>("BaseFont", name); in LoadSimpleFont()
289 pFontDict->SetNewFor<CPDF_Number>("FirstChar", in LoadSimpleFont()
306 pFontDict->SetNewFor<CPDF_Number>("LastChar", in LoadSimpleFont()
308 pFontDict->SetNewFor<CPDF_Reference>("Widths", pDoc, in LoadSimpleFont()
313 pFontDict->SetNewFor<CPDF_Reference>("FontDescriptor", pDoc, in LoadSimpleFont()
315 return CPDF_DocPageData::FromDocument(pDoc)->GetFont(pFontDict); in LoadSimpleFont()
322 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadCompositeFont() local
[all …]
/external/pdfium/core/fpdfdoc/
Dcba_fontmap.cpp286 CPDF_Dictionary* pFontDict = nullptr; in GetAnnotDefaultFont() local
293 pFontDict = pResFontDict->GetDictFor(*sAlias); in GetAnnotDefaultFont()
297 if (bWidget && !pFontDict && pAcroFormDict) { in GetAnnotDefaultFont()
300 pFontDict = pDRFontDict->GetDictFor(*sAlias); in GetAnnotDefaultFont()
303 if (!pFontDict) in GetAnnotDefaultFont()
306 return CPDF_DocPageData::FromDocument(m_pDocument.Get())->GetFont(pFontDict); in GetAnnotDefaultFont()
346 CPDF_Dictionary* pFontDict = pFont->GetFontDict(); in AddFontToAnnotDict() local
348 pFontDict->IsInline() ? pFontDict->Clone() in AddFontToAnnotDict()
349 : pFontDict->MakeReference(m_pDocument.Get()); in AddFontToAnnotDict()
Dcpvt_generateap.cpp408 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in GenerateResourceFontDict() local
409 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateResourceFontDict()
410 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateResourceFontDict()
411 pFontDict->SetNewFor<CPDF_Name>("BaseFont", CFX_Font::kDefaultAnsiFontName); in GenerateResourceFontDict()
412 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateResourceFontDict()
416 pFontDict->GetObjNum()); in GenerateResourceFontDict()
953 CPDF_Dictionary* pFontDict = pDRFontDict->GetDictFor(font_name); in GenerateFormAP() local
954 if (!pFontDict) { in GenerateFormAP()
955 pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in GenerateFormAP()
956 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateFormAP()
[all …]
Dcpdf_formfield.cpp854 CPDF_Dictionary* pFontDict = pFont->GetDictFor(*font_name); in LoadDA() local
855 if (!pFontDict) in LoadDA()
859 m_pFont = pData->GetFont(pFontDict); in LoadDA()
/external/pdfium/xfa/fgas/font/
Dcfgas_pdffontmgr.cpp63 CPDF_Dictionary* pFontDict = ToDictionary(pObj->GetDirect()); in FindFont() local
64 if (!pFontDict || pFontDict->GetStringFor("Type") != "Font") in FindFont()
67 RetainPtr<CPDF_Font> pPDFFont = pData->GetFont(pFontDict); in FindFont()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp522 auto pFontDict = pdfium::MakeRetain<CPDF_Dictionary>(); in ProcessText() local
523 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in ProcessText()
524 pFontDict->SetNewFor<CPDF_Name>("Subtype", data.type); in ProcessText()
525 pFontDict->SetNewFor<CPDF_Name>("BaseFont", data.baseFont); in ProcessText()
527 pFontDict->SetFor("Encoding", in ProcessText()
530 pIndirectFont = m_pDocument->AddIndirectObject(pFontDict); in ProcessText()