Searched refs:fontDict (Results 1 – 9 of 9) sorted by relevance
/external/pdfium/fpdfsdk/ |
D | fpdfedittext.cpp | 246 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/ |
D | cpdf_pagecontentgenerator_unittest.cpp | 219 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 …]
|
D | cpdf_pagecontentgenerator.cpp | 378 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/varLib/ |
D | cff.py | 60 fontDict = FontDict() 61 fontDict.setCFF2(True) 62 fdArray.append(fontDict) 63 fontDict.Private = privateDict 78 for fontDict in fdArray: 79 fontDict.setCFF2(True) 80 for key in list(fontDict.rawDict.keys()): 81 if key not in fontDict.order: 82 del fontDict.rawDict[key] 83 if hasattr(fontDict, key): [all …]
|
D | mutator.py | 44 for fontDict in topDict.FDArray: 45 pd = fontDict.Private
|
/external/fonttools/Lib/fontTools/cffLib/ |
D | __init__.py | 259 fontDict = FontDict() 260 fontDict.setCFF2(True) 261 fdArray.append(fontDict) 262 fontDict.Private = privateDict 277 for fontDict in fdArray: 278 fontDict.setCFF2(True) 279 for key in fontDict.rawDict.keys(): 280 if key not in fontDict.order: 281 del fontDict.rawDict[key] 282 if hasattr(fontDict, key): [all …]
|
/external/skqp/src/pdf/ |
D | SkPDFFont.cpp | 393 SkPDFDict fontDict("Font"); in emit_subset_type0() local 394 fontDict.insertName("Subtype", "Type0"); in emit_subset_type0() 395 fontDict.insertName("BaseFont", metrics.fPostScriptName); in emit_subset_type0() 396 fontDict.insertName("Encoding", "Identity-H"); in emit_subset_type0() 399 fontDict.insertObject("DescendantFonts", std::move(descendantFonts)); in emit_subset_type0() 410 fontDict.insertRef("ToUnicode", SkPDFStreamOut(nullptr, std::move(toUnicode), doc)); in emit_subset_type0() 412 doc->emit(fontDict, font.indirectReference()); in emit_subset_type0()
|
/external/skia/src/pdf/ |
D | SkPDFFont.cpp | 389 SkPDFDict fontDict("Font"); in emit_subset_type0() local 390 fontDict.insertName("Subtype", "Type0"); in emit_subset_type0() 391 fontDict.insertName("BaseFont", metrics.fPostScriptName); in emit_subset_type0() 392 fontDict.insertName("Encoding", "Identity-H"); in emit_subset_type0() 395 fontDict.insertObject("DescendantFonts", std::move(descendantFonts)); in emit_subset_type0() 406 fontDict.insertRef("ToUnicode", SkPDFStreamOut(nullptr, std::move(toUnicode), doc)); in emit_subset_type0() 408 doc->emit(fontDict, font.indirectReference()); in emit_subset_type0()
|
/external/fonttools/Lib/fontTools/ |
D | fontBuilder.py | 548 fontDict = FontDict() 549 fontDict.setCFF2(True) 553 fontDict.Private = private 554 fdArray.append(fontDict)
|