Home
last modified time | relevance | path

Searched refs:pFont (Results 1 – 25 of 93) sorted by relevance

1234

/external/pdfium/xfa/fxfa/
Dcxfa_fontmgr.cpp40 RetainPtr<CFGAS_GEFont> pFont; in GetFont() local
42 pFont = pMgr->GetFont(wsEnglishName.AsStringView(), dwFontStyles, &pPDFFont, in GetFont()
44 if (pFont) in GetFont()
45 return pFont; in GetFont()
47 if (!pFont && m_pDefFontMgr) in GetFont()
48 pFont = m_pDefFontMgr->GetFont(hDoc->GetApp()->GetFDEFontMgr(), in GetFont()
51 if (!pFont && pMgr) { in GetFont()
53 pFont = pMgr->GetFont(wsEnglishName.AsStringView(), dwFontStyles, &pPDFFont, in GetFont()
55 if (pFont) in GetFont()
56 return pFont; in GetFont()
[all …]
/external/pdfium/core/fxge/
Dcfx_facecache.cpp72 const CFX_Font* pFont, in RenderGlyph() argument
87 const CFX_SubstFont* pSubstFont = pFont->GetSubstFont(); in RenderGlyph()
104 if (pFont->IsVertical()) in RenderGlyph()
110 pFont->AdjustMMParams(glyph_index, dest_width, in RenderGlyph()
111 pFont->GetSubstFont()->m_Weight); in RenderGlyph()
194 const CFX_PathData* CFX_FaceCache::LoadGlyphPath(const CFX_Font* pFont, in LoadGlyphPath() argument
200 const auto* pSubstFont = pFont->GetSubstFont(); in LoadGlyphPath()
203 bool vertical = pSubstFont ? pFont->IsVertical() : false; in LoadGlyphPath()
210 CFX_PathData* pGlyphPath = pFont->LoadGlyphPathImpl(glyph_index, dest_width); in LoadGlyphPath()
215 const CFX_GlyphBitmap* CFX_FaceCache::LoadGlyphBitmap(const CFX_Font* pFont, in LoadGlyphBitmap() argument
[all …]
Dcfx_unicodeencodingex.cpp29 CFX_Font* pFont, in FXFM_CreateFontEncoding() argument
31 if (FXFT_Select_Charmap(pFont->GetFace(), nEncodingID)) in FXFM_CreateFontEncoding()
33 return pdfium::MakeUnique<CFX_UnicodeEncodingEx>(pFont, nEncodingID); in FXFM_CreateFontEncoding()
38 CFX_UnicodeEncodingEx::CFX_UnicodeEncodingEx(CFX_Font* pFont, in CFX_UnicodeEncodingEx() argument
40 : CFX_UnicodeEncoding(pFont), m_nEncodingID(EncodingID) {} in CFX_UnicodeEncodingEx()
88 CFX_Font* pFont, in FX_CreateFontEncodingEx() argument
90 if (!pFont || !pFont->GetFace()) in FX_CreateFontEncodingEx()
94 return FXFM_CreateFontEncoding(pFont, nEncodingID); in FX_CreateFontEncodingEx()
97 auto pFontEncoding = FXFM_CreateFontEncoding(pFont, id); in FX_CreateFontEncodingEx()
Dcfx_fontcache.cpp28 CFX_FaceCache* CFX_FontCache::GetCachedFace(const CFX_Font* pFont) { in GetCachedFace() argument
29 FXFT_Face face = pFont->GetFace(); in GetCachedFace()
50 CFX_TypeFace* CFX_FontCache::GetDeviceCache(const CFX_Font* pFont) { in GetDeviceCache() argument
51 return GetCachedFace(pFont)->GetDeviceCache(pFont); in GetDeviceCache()
55 void CFX_FontCache::ReleaseCachedFace(const CFX_Font* pFont) { in ReleaseCachedFace() argument
56 FXFT_Face face = pFont->GetFace(); in ReleaseCachedFace()
Dcfx_facecache.h29 const CFX_GlyphBitmap* LoadGlyphBitmap(const CFX_Font* pFont,
36 const CFX_PathData* LoadGlyphPath(const CFX_Font* pFont,
41 CFX_TypeFace* GetDeviceCache(const CFX_Font* pFont);
49 std::unique_ptr<CFX_GlyphBitmap> RenderGlyph(const CFX_Font* pFont,
56 const CFX_Font* pFont,
61 CFX_GlyphBitmap* LookUpGlyphBitmap(const CFX_Font* pFont,
Dcfx_folderfontinfo.cpp295 FontFaceInfo* pFont = it.second.get(); in FindFont() local
296 if (!(pFont->m_Charsets & charset_flag) && charset != FX_CHARSET_Default) in FindFont()
303 GetSimilarValue(weight, bItalic, pitch_family, pFont->m_Styles); in FindFont()
306 pFind = pFont; in FindFont()
341 const FontFaceInfo* pFont = static_cast<FontFaceInfo*>(hFont); in GetFontData() local
345 datasize = pFont->m_FontOffset ? 0 : pFont->m_FileSize; in GetFontData()
347 datasize = pFont->m_FontOffset ? pFont->m_FileSize : 0; in GetFontData()
349 uint32_t nTables = pFont->m_FontTables.GetLength() / 16; in GetFontData()
351 const uint8_t* p = pFont->m_FontTables.raw_str() + i * 16; in GetFontData()
362 FILE* pFile = fopen(pFont->m_FilePath.c_str(), "rb"); in GetFontData()
/external/pdfium/xfa/fgas/font/
Dcfgas_gefont.cpp31 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont()
32 if (!pFont->LoadFontInternal(pszFontFamily, dwFontStyles, wCodePage)) in LoadFont()
34 return pFont; in LoadFont()
41 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont() local
42 if (!pFont->LoadFontInternal(pExternalFont)) in LoadFont()
44 return pFont; in LoadFont()
51 auto pFont = pdfium::MakeRetain<CFGAS_GEFont>(pFontMgr); in LoadFont() local
52 if (!pFont->LoadFontInternal(std::move(pInternalFont))) in LoadFont()
54 return pFont; in LoadFont()
169 RetainPtr<CFGAS_GEFont> pFont; in GetCharWidth() local
[all …]
Dcfgas_defaultfontmanager.cpp20 RetainPtr<CFGAS_GEFont> pFont = in GetFont() local
22 if (!pFont) { in GetFont()
42 pFont = pFontMgr->LoadFont(wsReplace.c_str(), dwStyle, 0xFFFF); in GetFont()
43 if (pFont) in GetFont()
52 if (pFont) in GetFont()
53 m_CacheFonts.push_back(pFont); in GetFont()
54 return pFont; in GetFont()
61 RetainPtr<CFGAS_GEFont> pFont = in GetDefaultFont() local
63 if (!pFont) { in GetDefaultFont()
64 pFont = pFontMgr->LoadFont(static_cast<const wchar_t*>(nullptr), in GetDefaultFont()
[all …]
Dcfgas_fontmgr.cpp87 int32_t GetSimilarityScore(FX_FONTDESCRIPTOR const* pFont, in GetSimilarityScore() argument
91 FontStyleIsSymbolic(pFont->dwFontStyles)) { in GetSimilarityScore()
95 FontStyleIsFixedPitch(pFont->dwFontStyles)) { in GetSimilarityScore()
98 if (FontStyleIsSerif(dwFontStyles) == FontStyleIsSerif(pFont->dwFontStyles)) in GetSimilarityScore()
100 if (FontStyleIsScript(dwFontStyles) == FontStyleIsScript(pFont->dwFontStyles)) in GetSimilarityScore()
176 FX_FONTDESCRIPTOR* pFont = FX_Alloc(FX_FONTDESCRIPTOR, 1); in GdiFontEnumProc() local
177 memset(pFont, 0, sizeof(FX_FONTDESCRIPTOR)); in GdiFontEnumProc()
178 pFont->uCharSet = lf.lfCharSet; in GdiFontEnumProc()
179 pFont->dwFontStyles = GetGdiFontStyles(lf); in GdiFontEnumProc()
180 FXSYS_wcsncpy(pFont->wsFontFace, (const wchar_t*)lf.lfFaceName, 31); in GdiFontEnumProc()
[all …]
Dcfgas_pdffontmgr.cpp90 RetainPtr<CFGAS_GEFont> pFont = in GetFont() local
92 if (pFont) in GetFont()
93 m_FontMap[strKey] = pFont; in GetFont()
95 return pFont; in GetFont()
186 bool CFGAS_PDFFontMgr::GetCharWidth(const RetainPtr<CFGAS_GEFont>& pFont, in GetCharWidth() argument
192 auto it = m_FDE2PDFFont.find(pFont); in GetCharWidth()
201 void CFGAS_PDFFontMgr::SetFont(const RetainPtr<CFGAS_GEFont>& pFont, in SetFont() argument
203 m_FDE2PDFFont[pFont] = pPDFFont; in SetFont()
/external/pdfium/core/fpdfapi/render/
Dcpdf_textrenderer.cpp20 CFX_Font* GetFont(CPDF_Font* pFont, int32_t position) { in GetFont() argument
21 return position == -1 ? pFont->GetFont() : pFont->GetFontFallback(position); in GetFont()
30 CPDF_Font* pFont, in DrawTextPath() argument
40 CharPosList.Load(charCodes, charPos, pFont, font_size); in DrawTextPath()
52 CFX_Font* font = GetFont(pFont, fontPosition); in DrawTextPath()
62 CFX_Font* font = GetFont(pFont, fontPosition); in DrawTextPath()
76 CPDF_Font* pFont, in DrawTextString() argument
83 if (pFont->IsType3Font()) in DrawTextString()
86 int nChars = pFont->CountChar(str.c_str(), str.GetLength()); in DrawTextString()
97 codes[i] = pFont->GetNextChar(str.c_str(), str.GetLength(), offset); in DrawTextString()
[all …]
Dcpdf_charposlist.cpp23 CPDF_Font* pFont, in Load() argument
27 CPDF_CIDFont* pCIDFont = pFont->AsCIDFont(); in Load()
38 WideString unicode = pFont->UnicodeFromCharCode(CharCode); in Load()
40 charpos.m_GlyphIndex = pFont->GlyphFromCharCode(CharCode, &bVert); in Load()
43 charpos.m_ExtGID = pFont->GlyphFromCharCodeExt(CharCode); in Load()
49 pCurrentFont = pFont->GetFont(); in Load()
52 pFont->FallbackFontFromCharcode(CharCode); in Load()
53 charpos.m_GlyphIndex = pFont->FallbackGlyphFromCharcode( in Load()
55 pCurrentFont = pFont->GetFontFallback(charpos.m_FallbackFontPosition); in Load()
61 if (!pFont->IsEmbedded() && !pFont->IsCIDFont()) in Load()
[all …]
Dcpdf_docrenderdata.cpp48 CPDF_Type3Font* pFont) { in GetCachedType3() argument
49 auto it = m_Type3FaceMap.find(pFont); in GetCachedType3()
53 auto pCache = pdfium::MakeRetain<CPDF_Type3Cache>(pFont); in GetCachedType3()
54 m_Type3FaceMap[pFont] = pCache; in GetCachedType3()
58 void CPDF_DocRenderData::MaybePurgeCachedType3(CPDF_Type3Font* pFont) { in MaybePurgeCachedType3() argument
59 auto it = m_Type3FaceMap.find(pFont); in MaybePurgeCachedType3()
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp32 CFX_Font* pFont, in LoadFontDesc() argument
40 if (FXFT_Is_Face_fixedwidth(pFont->GetFace())) in LoadFontDesc()
44 if (FXFT_Is_Face_Italic(pFont->GetFace())) in LoadFontDesc()
46 if (FXFT_Is_Face_Bold(pFont->GetFace())) in LoadFontDesc()
54 pFont->GetBBox(bbox); 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/pdfium/core/fxge/apple/
Dfx_apple_platform.cpp33 CFX_Font* pFont, in CGDrawGlyphRun() argument
51 if (!pFont->GetPlatformFont()) { in CGDrawGlyphRun()
52 if (pFont->GetPsName() == "DFHeiStd-W5") in CGDrawGlyphRun()
55 pFont->SetPlatformFont( in CGDrawGlyphRun()
56 quartz2d.CreateFont(pFont->GetFontData(), pFont->GetSize())); in CGDrawGlyphRun()
57 if (!pFont->GetPlatformFont()) in CGDrawGlyphRun()
79 return quartz2d.drawGraphicsString(pContext, pFont->GetPlatformFont(), in CGDrawGlyphRun()
105 CFX_Font* pFont, in DrawDeviceText() argument
109 if (!pFont) in DrawDeviceText()
112 bool bBold = pFont->IsBold(); in DrawDeviceText()
[all …]
/external/pdfium/fpdfsdk/pwl/
Dcpwl_font_map.cpp64 return m_Data[nFontIndex]->pFont; in GetPDFFont()
116 if (!pData || !pData->pFont) in CharCodeFromUnicode()
119 if (pData->pFont->IsUnicodeCompatible()) in CharCodeFromUnicode()
120 return pData->pFont->CharCodeFromUnicode(word); in CharCodeFromUnicode()
181 CPDF_Font* pFont = bFind ? FindFontSameCharset(&sAlias, nCharset) : nullptr; in GetFontIndex() local
182 if (!pFont) { in GetFontIndex()
184 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset); in GetFontIndex()
187 AddedFont(pFont, sAlias); in GetFontIndex()
188 return AddFontData(pFont, sAlias, nCharset); in GetFontIndex()
196 int32_t CPWL_FontMap::AddFontData(CPDF_Font* pFont, in AddFontData() argument
[all …]
/external/pdfium/fpdfsdk/formfiller/
Dcba_fontmap.cpp70 void CBA_FontMap::SetDefaultFont(CPDF_Font* pFont, in SetDefaultFont() argument
72 ASSERT(pFont); in SetDefaultFont()
77 m_pDefaultFont = pFont; in SetDefaultFont()
134 CPDF_Font* pFont = pDocument->LoadFont(pElement); in FindResFontSameCharset() local
135 if (!pFont) in FindResFontSameCharset()
137 const CFX_SubstFont* pSubst = pFont->GetSubstFont(); in FindResFontSameCharset()
142 pFind = pFont; in FindResFontSameCharset()
148 void CBA_FontMap::AddedFont(CPDF_Font* pFont, const ByteString& sFontAlias) { in AddedFont() argument
149 AddFontToAnnotDict(pFont, sFontAlias); in AddedFont()
152 void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, in AddFontToAnnotDict() argument
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_textobject.cpp40 CPDF_Font* pFont = m_TextState.GetFont(); in GetItemInfo() local
41 if (!pFont->IsCIDFont()) in GetItemInfo()
43 if (!pFont->AsCIDFont()->IsVertWriting()) in GetItemInfo()
46 uint16_t CID = pFont->AsCIDFont()->CIDFromCharCode(pInfo->m_CharCode); in GetItemInfo()
51 pFont->AsCIDFont()->GetVertOrigin(CID, vx, vy); in GetItemInfo()
151 CPDF_Font* pFont = m_TextState.GetFont(); in SetSegments() local
154 nChars += pFont->CountChar(pStrs[i].c_str(), pStrs[i].GetLength()); in SetSegments()
164 m_CharCodes[index++] = pFont->GetNextChar(segment, len, offset); in SetSegments()
180 CPDF_Font* pFont = m_TextState.GetFont(); in GetCharWidth() local
182 CPDF_CIDFont* pCIDFont = pFont->AsCIDFont(); in GetCharWidth()
[all …]
Dcpdf_docpagedata.cpp133 std::unique_ptr<CPDF_Font> pFont = in GetFont() local
135 if (!pFont) in GetFont()
139 pFontData->reset(std::move(pFont)); in GetFont()
141 pFontData = new CPDF_CountedFont(std::move(pFont)); in GetFont()
154 CPDF_Font* pFont = fontData->get(); in GetStandardFont() local
155 if (!pFont) in GetStandardFont()
157 if (pFont->GetBaseFont() != fontName) in GetStandardFont()
159 if (pFont->IsEmbedded()) in GetStandardFont()
161 if (!pFont->IsType1Font()) in GetStandardFont()
163 if (pFont->GetFontDict()->KeyExist("Widths")) in GetStandardFont()
[all …]
Dcpdf_textstate.cpp24 void CPDF_TextState::SetFont(CPDF_Font* pFont) { in SetFont() argument
25 m_Ref.GetPrivateCopy()->SetFont(pFont); in SetFont()
126 void CPDF_TextState::TextData::SetFont(CPDF_Font* pFont) { in SetFont() argument
128 m_pDocument = pFont ? pFont->GetDocument() : nullptr; in SetFont()
129 m_pFont = pFont; in SetFont()
/external/pdfium/core/fxge/android/
Dcfpf_skiafont.cpp192 CFPF_SkiaPathFont* pFont = (CFPF_SkiaPathFont*)pFontDes; in InitFont() local
193 m_Face = pFontMgr->GetFontFace(pFont->m_pPath, pFont->m_iFaceIndex); in InitFont()
197 CFPF_SkiaFileFont* pFont = (CFPF_SkiaFileFont*)pFontDes; in InitFont() local
198 m_Face = pFontMgr->GetFontFace(pFont->m_pFile, pFont->m_iFaceIndex); in InitFont()
202 CFPF_SkiaBufferFont* pFont = (CFPF_SkiaBufferFont*)pFontDes; in InitFont() local
203 m_Face = pFontMgr->GetFontFace((const uint8_t*)pFont->m_pBuffer, in InitFont()
204 pFont->m_szBuffer, pFont->m_iFaceIndex); in InitFont()
/external/pdfium/core/fpdfapi/font/
Dcpdf_font.cpp308 CPDF_Font* pFont = pFontGlobals->Find(pDoc, font_id); in GetStockFont() local
309 if (pFont) in GetStockFont()
310 return pFont; in GetStockFont()
323 std::unique_ptr<CPDF_Font> pFont; in Create() local
330 pFont = pdfium::MakeUnique<CPDF_CIDFont>(); in Create()
334 if (!pFont) in Create()
335 pFont = pdfium::MakeUnique<CPDF_TrueTypeFont>(); in Create()
337 pFont = pdfium::MakeUnique<CPDF_Type3Font>(); in Create()
339 pFont = pdfium::MakeUnique<CPDF_CIDFont>(); in Create()
341 pFont = pdfium::MakeUnique<CPDF_Type1Font>(); in Create()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_interform.cpp59 const CPDF_Font* pFont,
76 CPDF_Font* pFont = CPDF_InterForm::AddStandardFont(pDocument, "Helvetica"); in InitDict() local
77 if (pFont) in InitDict()
78 AddFont(pFormDict, pDocument, pFont, &csBaseName); in InitDict()
82 if (!pFont || csFontName != "Helvetica") { in InitDict()
83 pFont = CPDF_InterForm::AddNativeFont(pDocument); in InitDict()
84 if (pFont) { in InitDict()
86 AddFont(pFormDict, pDocument, pFont, &csBaseName); in InitDict()
90 if (pFont) in InitDict()
167 const CPDF_Font* pFont, in FindFont() argument
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_document.cpp233 void InsertWidthArray1(CFX_Font* pFont, in InsertWidthArray1() argument
243 widths[i] = pFont->GetGlyphWidth(glyph_index); in InsertWidthArray1()
872 CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, bool bVert) { in AddFont() argument
873 if (!pFont) in AddFont()
879 ByteString basefont = pFont->GetFamilyName(); in AddFont()
882 CalculateFlags(pFont->IsBold(), pFont->IsItalic(), pFont->IsFixedWidth(), in AddFont()
887 auto pEncoding = pdfium::MakeUnique<CFX_UnicodeEncoding>(pFont); in AddFont()
893 int char_width = pFont->GetGlyphWidth(glyph_index); in AddFont()
901 int char_width = pFont->GetGlyphWidth(glyph_index); in AddFont()
910 int char_width = pFont->GetGlyphWidth(glyph_index); in AddFont()
[all …]
/external/pdfium/core/fxge/win32/
Dfx_win32_print.cpp201 CFX_Font* pFont, in DrawDeviceText() argument
209 if (nChars < 1 || !pFont || !pFont->IsEmbedded() || !pFont->IsTTFont()) in DrawDeviceText()
230 lf.lfWeight = pFont->IsBold() ? FW_BOLD : FW_NORMAL; in DrawDeviceText()
231 lf.lfItalic = pFont->IsItalic(); in DrawDeviceText()
234 const WideString wsName = pFont->GetFaceName().UTF8Decode(); in DrawDeviceText()
487 CFX_Font* pFont, in DrawDeviceText() argument
491 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pObject2Device, in DrawDeviceText()
596 CFX_Font* pFont, in DrawDeviceText() argument
602 if (nChars < 1 || !pFont || !pFont->IsEmbedded() || !pFont->IsTTFont()) in DrawDeviceText()

1234