Home
last modified time | relevance | path

Searched refs:fontDesc (Results 1 – 3 of 3) sorted by relevance

/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp36 CPDF_Dictionary* fontDesc = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadFontDesc() local
37 fontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in LoadFontDesc()
38 fontDesc->SetNewFor<CPDF_Name>("FontName", font_name); in LoadFontDesc()
52 fontDesc->SetNewFor<CPDF_Number>("Flags", flags); in LoadFontDesc()
60 fontDesc->SetFor("FontBBox", std::move(pBBox)); in LoadFontDesc()
63 fontDesc->SetNewFor<CPDF_Number>("ItalicAngle", pFont->IsItalic() ? -12 : 0); in LoadFontDesc()
65 fontDesc->SetNewFor<CPDF_Number>("Ascent", pFont->GetAscent()); in LoadFontDesc()
66 fontDesc->SetNewFor<CPDF_Number>("Descent", pFont->GetDescent()); in LoadFontDesc()
69 fontDesc->SetNewFor<CPDF_Number>("CapHeight", pFont->GetAscent()); in LoadFontDesc()
70 fontDesc->SetNewFor<CPDF_Number>("StemV", pFont->IsBold() ? 120 : 70); in LoadFontDesc()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypeface.java187 FontDesc fontDesc = (FontDesc) o; in equals()
189 if (style != fontDesc.style) return false; in equals()
190 … if (familyName != null ? !familyName.equals(fontDesc.familyName) : fontDesc.familyName != null) in equals()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp284 CPDF_Dictionary* fontDesc = fontDict->GetDictFor("FontDescriptor"); in TEST_F() local
285 ASSERT_TRUE(fontDesc); in TEST_F()
286 EXPECT_TRUE(fontDesc->GetObjNum()); in TEST_F()
287 EXPECT_EQ("FontDescriptor", fontDesc->GetStringFor("Type")); in TEST_F()
288 EXPECT_EQ("Helvetica", fontDesc->GetStringFor("FontName")); in TEST_F()