Home
last modified time | relevance | path

Searched refs:pFontDesc (Results 1 – 8 of 8) sorted by relevance

/external/pdfium/core/fxge/
Dcfx_fontmgr.cpp126 CTTFontDesc* pFontDesc = it->second.get(); in GetCachedFace() local
127 *pFontData = pFontDesc->FontData(); in GetCachedFace()
128 pFontDesc->AddRef(); in GetCachedFace()
129 return pFontDesc->SingleFace(); in GetCachedFace()
149 auto pFontDesc = pdfium::MakeUnique<CTTFontDesc>(pData, face); in AddCachedFace() local
150 CTTFontDesc* pResult = pFontDesc.get(); in AddCachedFace()
151 m_FaceMap[KeyNameFromFace(face_name, weight, bItalic)] = std::move(pFontDesc); in AddCachedFace()
163 CTTFontDesc* pFontDesc = it->second.get(); in GetCachedTTCFace() local
164 *pFontData = pFontDesc->FontData(); in GetCachedTTCFace()
165 int face_index = GetTTCIndex(pFontDesc->FontData(), ttc_size, font_offset); in GetCachedTTCFace()
[all …]
/external/pdfium/core/fpdfapi/font/
Dcpdf_font.cpp167 void CPDF_Font::LoadFontDescriptor(CPDF_Dictionary* pFontDesc) { in LoadFontDescriptor() argument
168 m_Flags = pFontDesc->GetIntegerFor("Flags", FXFONT_NONSYMBOLIC); in LoadFontDescriptor()
171 if (pFontDesc->KeyExist("ItalicAngle")) { in LoadFontDescriptor()
172 ItalicAngle = pFontDesc->GetIntegerFor("ItalicAngle"); in LoadFontDescriptor()
180 if (pFontDesc->KeyExist("StemV")) { in LoadFontDescriptor()
181 m_StemV = pFontDesc->GetIntegerFor("StemV"); in LoadFontDescriptor()
185 if (pFontDesc->KeyExist("Ascent")) { in LoadFontDescriptor()
186 m_Ascent = pFontDesc->GetIntegerFor("Ascent"); in LoadFontDescriptor()
190 if (pFontDesc->KeyExist("Descent")) { in LoadFontDescriptor()
191 m_Descent = pFontDesc->GetIntegerFor("Descent"); in LoadFontDescriptor()
[all …]
Dcpdf_simplefont.cpp107 CPDF_Dictionary* pFontDesc = m_pFontDict->GetDictFor("FontDescriptor"); in LoadCommon() local
108 if (pFontDesc) { in LoadCommon()
109 LoadFontDescriptor(pFontDesc); in LoadCommon()
114 if (pFontDesc && pFontDesc->KeyExist("MissingWidth")) { in LoadCommon()
115 int MissingWidth = pFontDesc->GetIntegerFor("MissingWidth"); in LoadCommon()
Dcpdf_type1font.cpp80 CPDF_Dictionary* pFontDesc = m_pFontDict->GetDictFor("FontDescriptor"); in Load() local
81 if (pFontDesc && pFontDesc->KeyExist("Flags")) in Load()
82 m_Flags = pFontDesc->GetIntegerFor("Flags"); in Load()
Dcpdf_cidfont.cpp357 CPDF_Dictionary* pFontDesc = pCIDFontDict->GetDictFor("FontDescriptor"); in Load() local
358 if (pFontDesc) in Load()
359 LoadFontDescriptor(pFontDesc); in Load()
844 CPDF_Dictionary* pFontDesc = m_pFontDict->GetDictFor("FontDescriptor"); in LoadGB2312() local
845 if (pFontDesc) in LoadGB2312()
846 LoadFontDescriptor(pFontDesc); in LoadGB2312()
/external/pdfium/core/fxge/android/
Dcfpf_skiafontmgr.cpp456 CFPF_SkiaPathFont* pFontDesc = new CFPF_SkiaPathFont; in ScanFile() local
457 pFontDesc->SetPath(file.c_str()); in ScanFile()
458 ReportFace(face, pFontDesc); in ScanFile()
459 m_FontFaces.push_back(pFontDesc); in ScanFile()
464 CFPF_SkiaFontDescriptor* pFontDesc) { in ReportFace() argument
465 if (!face || !pFontDesc) in ReportFace()
467 pFontDesc->SetFamily(FXFT_Get_Face_Family_Name(face)); in ReportFace()
469 pFontDesc->m_dwStyle |= FXFONT_BOLD; in ReportFace()
471 pFontDesc->m_dwStyle |= FXFONT_ITALIC; in ReportFace()
473 pFontDesc->m_dwStyle |= FXFONT_FIXED_PITCH; in ReportFace()
[all …]
Dcfpf_skiafontmgr.h44 void ReportFace(FXFT_Face face, CFPF_SkiaFontDescriptor* pFontDesc);
/external/pdfium/core/fpdfapi/parser/
Dcpdf_document.cpp326 auto pFontDesc = in CalculateFontDesc() local
328 pFontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in CalculateFontDesc()
329 pFontDesc->SetNewFor<CPDF_Name>("FontName", basefont); in CalculateFontDesc()
330 pFontDesc->SetNewFor<CPDF_Number>("Flags", flags); in CalculateFontDesc()
331 pFontDesc->SetFor("FontBBox", std::move(bbox)); in CalculateFontDesc()
332 pFontDesc->SetNewFor<CPDF_Number>("ItalicAngle", italicangle); in CalculateFontDesc()
333 pFontDesc->SetNewFor<CPDF_Number>("Ascent", ascend); in CalculateFontDesc()
334 pFontDesc->SetNewFor<CPDF_Number>("Descent", descend); in CalculateFontDesc()
335 pFontDesc->SetNewFor<CPDF_Number>("StemV", stemV); in CalculateFontDesc()
336 return pFontDesc; in CalculateFontDesc()
[all …]