Searched refs:fontDesc (Results 1 – 2 of 2) sorted by relevance
/external/pdfium/fpdfsdk/ |
D | fpdfedittext.cpp | 89 CPDF_Dictionary* fontDesc = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFText_LoadType1Font() local 90 fontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in FPDFText_LoadType1Font() 91 fontDesc->SetNewFor<CPDF_Name>("FontName", name); in FPDFText_LoadType1Font() 106 fontDesc->SetNewFor<CPDF_Number>("Flags", flags); in FPDFText_LoadType1Font() 114 fontDesc->SetFor("FontBBox", std::move(pBBox)); in FPDFText_LoadType1Font() 117 fontDesc->SetNewFor<CPDF_Number>("ItalicAngle", pFont->IsItalic() ? -12 : 0); in FPDFText_LoadType1Font() 119 fontDesc->SetNewFor<CPDF_Number>("Ascent", pFont->GetAscent()); in FPDFText_LoadType1Font() 120 fontDesc->SetNewFor<CPDF_Number>("Descent", pFont->GetDescent()); in FPDFText_LoadType1Font() 123 fontDesc->SetNewFor<CPDF_Number>("CapHeight", pFont->GetAscent()); in FPDFText_LoadType1Font() 124 fontDesc->SetNewFor<CPDF_Number>("StemV", pFont->IsBold() ? 120 : 70); in FPDFText_LoadType1Font() [all …]
|
/external/skia/tools/ |
D | create_test_font.cpp | 319 static int written_index(const FontDesc& fontDesc) { in written_index() argument 322 if (!strcmp(fontDesc.fFont, writ.fName) && fontDesc.fStyle == writ.fStyle) { in written_index() 332 FontDesc& fontDesc = gFonts[index]; in generate_fonts() local 334 out = font_header(fontDesc.fName); in generate_fonts() 336 int fontIndex = written_index(fontDesc); in generate_fonts() 338 fontDesc.fFontIndex = fontIndex; in generate_fonts() 341 SkTypeface* systemTypeface = SkTypeface::CreateFromName(fontDesc.fFont, fontDesc.fStyle); in generate_fonts() 344 filepath.append(fontDesc.fFile); in generate_fonts() 348 output_font(resourceTypeface, fontDesc.fFont, fontDesc.fStyle, out); in generate_fonts() 349 fontDesc.fFontIndex = gWritten.count(); in generate_fonts() [all …]
|