Home
last modified time | relevance | path

Searched refs:fontDict (Results 1 – 4 of 4) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp246 CPDF_Dictionary* fontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadSimpleFont() local
247 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadSimpleFont()
248 fontDict->SetNewFor<CPDF_Name>( in LoadSimpleFont()
253 fontDict->SetNewFor<CPDF_Name>("BaseFont", name); in LoadSimpleFont()
259 fontDict->SetNewFor<CPDF_Number>("FirstChar", static_cast<int>(currentChar)); in LoadSimpleFont()
272 fontDict->SetNewFor<CPDF_Number>("LastChar", static_cast<int>(currentChar)); in LoadSimpleFont()
273 fontDict->SetNewFor<CPDF_Reference>("Widths", pDoc, widthsArray->GetObjNum()); in LoadSimpleFont()
277 fontDict->SetNewFor<CPDF_Reference>("FontDescriptor", pDoc, in LoadSimpleFont()
279 return pDoc->LoadFont(fontDict); in LoadSimpleFont()
289 CPDF_Dictionary* fontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadCompositeFont() local
[all …]
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp219 CPDF_Dictionary* fontDict = TestGetResource( in TEST_F() local
222 ASSERT_TRUE(fontDict); in TEST_F()
223 EXPECT_EQ("Font", fontDict->GetStringFor("Type")); in TEST_F()
224 EXPECT_EQ("Type1", fontDict->GetStringFor("Subtype")); in TEST_F()
225 EXPECT_EQ("Times-Roman", fontDict->GetStringFor("BaseFont")); in TEST_F()
274 CPDF_Dictionary* fontDict = TestGetResource( in TEST_F() local
279 ASSERT_TRUE(fontDict); in TEST_F()
280 EXPECT_TRUE(fontDict->GetObjNum()); in TEST_F()
281 EXPECT_EQ("Font", fontDict->GetStringFor("Type")); in TEST_F()
282 EXPECT_EQ("TrueType", fontDict->GetStringFor("Subtype")); in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp378 auto fontDict = pdfium::MakeUnique<CPDF_Dictionary>(); in ProcessText() local
379 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in ProcessText()
380 fontDict->SetNewFor<CPDF_Name>("Subtype", fontD.type); in ProcessText()
381 fontDict->SetNewFor<CPDF_Name>("BaseFont", fontD.baseFont); in ProcessText()
382 CPDF_Object* pDict = m_pDocument->AddIndirectObject(std::move(fontDict)); in ProcessText()
/external/fonttools/Lib/fontTools/
DcffLib.py257 for fontDict in self.items:
258 children.extend(fontDict.getChildren(strings))
442 fontDict = FontDict()
447 fontDict.fromXML(name, attrs, content)
448 self.append(fontDict)