Searched refs:pFont (Results 1 - 25 of 90) sorted by relevance

1234

/external/pdfium/xfa/src/fgas/src/font/
H A Dfx_stdfontmgr.cpp49 IFX_Font* pFont = (IFX_Font*)m_Fonts[i]; local
50 if (pFont != NULL) {
51 pFont->Release();
61 IFX_Font* pFont = NULL; local
62 if (m_CPFonts.Lookup((void*)(uintptr_t)dwHash, (void*&)pFont)) {
63 return pFont ? LoadFont(pFont, dwFontStyles, wCodePage) : NULL;
72 pFont = IFX_Font::LoadFont(pFD->wsFontFace, dwFontStyles, wCodePage, this);
73 if (pFont != NULL) {
74 m_Fonts.Add(pFont);
100 IFX_Font* pFont = NULL; local
165 IFX_Font* pFont = NULL; local
191 IFX_Font* pFont = NULL; local
208 IFX_Font* pFont = NULL; local
228 IFX_Font* pFont = NULL; local
263 IFX_Font* pFont = NULL; local
285 IFX_Font* pFont = (IFX_Font*)m_Fonts[i]; local
291 RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont) argument
305 RemoveFont(IFX_Font* pFont) argument
367 FX_LPCFONTDESCRIPTOR pFont = fonts.GetPtrAt(i); local
416 FX_GetSimilarValue(FX_LPCFONTDESCRIPTOR pFont, FX_DWORD dwFontStyles) argument
467 FX_LPFONTDESCRIPTOR pFont = FX_Alloc(FX_FONTDESCRIPTOR, 1); local
685 IFX_Font* pFont; local
693 IFX_Font* pFont; local
736 IFX_Font* pFont = NULL; local
775 IFX_Font* pFont = NULL; local
864 VerifyUnicode(IFX_Font* pFont, FX_WCHAR wcUnicode) argument
940 IFX_Font* pFont = NULL; local
1043 CFX_FontDescriptor* pFont = NULL; local
1195 IFX_Font* pFont; local
1203 IFX_Font* pFont; local
1251 CFX_FontDescriptor* pFont = new CFX_FontDescriptor; local
[all...]
H A Dfx_gefont.cpp21 CFX_GEFont* pFont = new CFX_GEFont(pFontMgr);
22 if (!pFont->LoadFont(pszFontFamily, dwFontStyles, wCodePage)) {
23 pFont->Release();
26 return pFont;
38 CFX_GEFont* pFont = new CFX_GEFont(pFontMgr);
39 if (!pFont->LoadFont(pBuffer, iLength)) {
40 pFont->Release();
43 return pFont;
54 CFX_GEFont* pFont = new CFX_GEFont(pFontMgr);
55 if (!pFont
82 CFX_GEFont* pFont = new CFX_GEFont(pFontMgr); local
150 IFX_Font* pFont = (IFX_Font*)m_SubstFonts[i]; local
406 IFX_Font* pFont = NULL; local
443 IFX_Font* pFont = NULL; local
509 IFX_Font* pFont = NULL; local
529 IFX_Font* pFont = m_pFontMgr->GetDefFontByUnicode( local
532 IFX_Font* pFont = m_pFontMgr->GetFontByUnicode(wUnicode, GetFontStyles(), local
569 IFX_Font* pFont = (IFX_Font*)m_SubstFonts[i]; local
[all...]
H A Dfx_gdifont.cpp49 CFX_GdiFont* pFont = new CFX_GdiFont(pFontMgr); local
50 if (!pFont->LoadFont(pszFontFamily, dwFontStyles, wCodePage)) {
51 pFont->Release();
54 return pFont;
59 CFX_GdiFont* pFont = new CFX_GdiFont(pFontMgr); local
60 if (!pFont->LoadFont(pBuffer, iLength)) {
61 pFont->Release();
64 return pFont;
68 CFX_GdiFont* pFont = new CFX_GdiFont(pFontMgr); local
69 if (!pFont
78 CFX_GdiFont* pFont = new CFX_GdiFont(pFontMgr); local
111 IFX_Font* pFont = (IFX_Font*)m_SubstFonts[i]; local
134 IFX_Font* pFont = (IFX_Font*)m_SubstFonts[i]; local
304 IFX_Font* pFont = NULL; local
350 IFX_Font* pFont = NULL; local
367 IFX_Font* pFont = m_pFontMgr->GetDefFontByUnicode(wUnicode, m_dwStyles, local
406 IFX_Font* pFont = GetSubstFont(iGlyphIndex); local
457 IFX_Font* pFont = GetSubstFont(iGlyphIndex); local
[all...]
H A Dfx_stdfontmgr.h10 int32_t FX_GetSimilarValue(FX_LPCFONTDESCRIPTOR pFont, FX_DWORD dwFontStyles);
47 virtual void RemoveFont(IFX_Font* pFont);
62 void RemoveFont(CFX_MapPtrToPtr& fontMap, IFX_Font* pFont);
96 CFX_FontDescriptor* pFont; member in struct:FX_FontDescriptorInfo
183 virtual void RemoveFont(IFX_Font* pFont);
196 FX_BOOL VerifyUnicode(IFX_Font* pFont, FX_WCHAR wcUnicode);
/external/pdfium/fpdfsdk/include/formfiller/
H A DFFL_CBA_Fontmap.h20 void SetDefaultFont(CPDF_Font* pFont, const CFX_ByteString& sFontName);
31 void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) override;
37 void AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias);
/external/pdfium/xfa/src/fgas/include/
H A Dfx_ucd.h23 IFX_Font* pFont,
29 IFX_Font* pFont,
/external/pdfium/core/src/fxge/apple/
H A Dfx_apple_platform.cpp35 CFX_Font* pFont,
45 CFX_Font* pFont,
67 if (!pFont->GetPlatformFont()) {
68 if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) {
71 pFont->SetPlatformFont(
72 quartz2d.CreateFont(pFont->GetFontData(), pFont->GetSize()));
73 if (!pFont->GetPlatformFont()) {
95 return quartz2d.drawGraphicsString(pContext, pFont->GetPlatformFont(),
102 CFX_Font* pFont,
34 RenderGlyph_Nativetext( CFX_Font* pFont, FX_DWORD glyph_index, const CFX_Matrix* pMatrix, int dest_width, int anti_alias) argument
42 _CGDrawGlyphRun(CGContextRef pContext, int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, const CFX_Matrix* pObject2Device, FX_FLOAT font_size, FX_DWORD argb, int alpha_flag, void* pIccTransform) argument
100 DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, const CFX_Matrix* pObject2Device, FX_FLOAT font_size, FX_DWORD argb, int alpha_flag, void* pIccTransform) argument
[all...]
/external/pdfium/core/src/fpdfdoc/
H A Ddoc_utils.h32 const CPDF_Font* pFont,
37 CPDF_Font*& pFont,
41 const CPDF_Font* pFont,
50 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont);
56 const CPDF_Font* pFont);
H A Ddoc_utils.cpp240 CPDF_Font* pFont = NULL; local
243 pFont = CPDF_InterForm::AddStandardFont(pDocument, "Helvetica");
244 if (pFont) {
245 AddInterFormFont(pFormDict, pDocument, pFont, csBaseName);
250 if (!pFont || csFontName != "Helvetica") {
251 pFont = CPDF_InterForm::AddNativeFont(pDocument);
252 if (pFont) {
254 AddInterFormFont(pFormDict, pDocument, pFont, csBaseName);
259 if (pFont) {
444 CPDF_Font* pFont local
454 FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont, CFX_ByteString& csNameTag) argument
487 FindInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Document* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& csNameTag) argument
532 AddInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont, CFX_ByteString& csNameTag) argument
576 CPDF_Font* pFont = local
600 RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont) argument
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_render/
H A Dfpdf_render_text.cpp200 CPDF_Font* pFont = textobj->m_TextState.GetFont(); local
201 if (pFont->GetFontType() == PDFFONT_TYPE3) {
215 if (!pFont->GetFace() &&
216 !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) {
224 if (!pFont->GetFace() &&
225 !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) {
261 DrawTextPathWithPattern(textobj, pObj2Device, pFont, font_size,
293 textobj->m_pCharPos, pFont, font_size, &text_matrix, pDeviceMatrix,
299 pFont, font_size, &text_matrix, fill_argb, &m_Options);
301 CPDF_Type3Cache* CPDF_RenderStatus::GetCachedType3(CPDF_Type3Font* pFont) { argument
308 ReleaseCachedType3(CPDF_Type3Font* pFont) argument
528 Load(int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT FontSize) argument
586 DrawTextPath(CFX_RenderDevice* pDevice, int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_Matrix* pText2User, const CFX_Matrix* pUser2Device, const CFX_GraphStateData* pGraphState, FX_ARGB fill_argb, FX_ARGB stroke_argb, CFX_PathData* pClippingPath, int nFlag) argument
609 DrawTextString(CFX_RenderDevice* pDevice, int left, int top, CPDF_Font* pFont, int height, const CFX_ByteString& str, FX_ARGB argb) argument
627 DrawTextString(CFX_RenderDevice* pDevice, FX_FLOAT origin_x, FX_FLOAT origin_y, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_Matrix* pMatrix, const CFX_ByteString& str, FX_ARGB fill_argb, FX_ARGB stroke_argb, const CFX_GraphStateData* pGraphState, const CPDF_RenderOptions* pOptions) argument
681 DrawNormalText(CFX_RenderDevice* pDevice, int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_Matrix* pText2Device, FX_ARGB fill_argb, const CPDF_RenderOptions* pOptions) argument
726 DrawTextPathWithPattern(const CPDF_TextObject* textobj, const CFX_Matrix* pObj2Device, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_Matrix* pTextMatrix, FX_BOOL bFill, FX_BOOL bStroke) argument
[all...]
/external/pdfium/core/src/fxge/ge/
H A Dfx_ge_font.cpp38 CFX_UnicodeEncodingEx* _FXFM_CreateFontEncoding(CFX_Font* pFont, argument
40 if (FXFT_Select_Charmap(pFont->GetFace(), nEncodingID))
42 return new CFX_UnicodeEncodingEx(pFont, nEncodingID);
73 FX_BOOL CFX_Font::LoadClone(const CFX_Font* pFont) { argument
74 if (pFont == NULL) {
78 if (pFont->m_pSubstFont) {
80 m_pSubstFont->m_Charset = pFont->m_pSubstFont->m_Charset;
81 m_pSubstFont->m_ExtHandle = pFont->m_pSubstFont->m_ExtHandle;
82 m_pSubstFont->m_SubstFlags = pFont->m_pSubstFont->m_SubstFlags;
83 m_pSubstFont->m_Weight = pFont
459 CFX_UnicodeEncoding(CFX_Font* pFont) argument
484 CFX_UnicodeEncodingEx(CFX_Font* pFont, FX_DWORD EncodingID) argument
538 FX_CreateFontEncodingEx(CFX_Font* pFont, FX_DWORD nEncodingID) argument
[all...]
H A Dfx_ge_text.cpp176 CFX_Font* pFont,
190 (pFont->GetPsName().Find(CFX_WideString::FromLocal("+ZJHL")) != -1) ||
191 (pFont->GetPsName() == CFX_WideString::FromLocal("CNAAJI+cmex10"))) {
196 m_pDeviceDriver->DrawDeviceText(nChars, pCharPos, pFont, pCache,
212 (pFont->GetPsName() == CFX_WideString::FromLocal("CNAAJI+cmex10"))) {
217 m_pDeviceDriver->DrawDeviceText(nChars, pCharPos, pFont, pCache,
232 if (pFont->GetFace() ||
233 (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) {
236 return DrawTextPath(nChars, pCharPos, pFont, pCache, font_size,
246 if (!pFont
174 DrawNormalText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, FX_FLOAT font_size, const CFX_Matrix* pText2Device, FX_DWORD fill_color, FX_DWORD text_flags, int alpha_flag, void* pIccTransform) argument
1106 DrawTextPath(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, FX_FLOAT font_size, const CFX_Matrix* pText2User, const CFX_Matrix* pUser2Device, const CFX_GraphStateData* pGraphState, FX_DWORD fill_color, FX_ARGB stroke_color, CFX_PathData* pClippingPath, int nFlag, int alpha_flag, void* pIccTransform, int blend_type) argument
1174 GetCachedFace(CFX_Font* pFont) argument
1195 ReleaseCachedFace(CFX_Font* pFont) argument
1249 LookUpGlyphBitmap( CFX_Font* pFont, const CFX_Matrix* pMatrix, CFX_ByteStringC& FaceGlyphsKey, FX_DWORD glyph_index, FX_BOOL bFontStyle, int dest_width, int anti_alias) argument
1277 LoadGlyphBitmap(CFX_Font* pFont, FX_DWORD glyph_index, FX_BOOL bFontStyle, const CFX_Matrix* pMatrix, int dest_width, int anti_alias, int& text_flags) argument
1508 RenderGlyph(CFX_Font* pFont, FX_DWORD glyph_index, FX_BOOL bFontStyle, const CFX_Matrix* pMatrix, int dest_width, int anti_alias) argument
1643 LoadGlyphPath(CFX_Font* pFont, FX_DWORD glyph_index, int dest_width) argument
[all...]
/external/pdfium/fpdfsdk/src/formfiller/
H A DFFL_CBA_Fontmap.cpp60 void CBA_FontMap::SetDefaultFont(CPDF_Font* pFont, argument
62 ASSERT(pFont != NULL);
67 m_pDefaultFont = pFont;
133 CPDF_Font* pFont = pDocument->LoadFont(pElement); local
134 if (!pFont)
136 const CFX_SubstFont* pSubst = pFont->GetSubstFont();
141 pFind = pFont;
147 void CBA_FontMap::AddedFont(CPDF_Font* pFont, argument
149 AddFontToAnnotDict(pFont, sFontAlias);
152 void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, argument
[all...]
/external/pdfium/fpdfsdk/src/pdfwindow/
H A DPWL_FontMap.cpp63 return pData->pFont;
122 if (pData->pFont) {
123 if (pData->pFont->IsUnicodeCompatible()) {
124 int nCharCode = pData->pFont->CharCodeFromUnicode(word);
125 pData->pFont->GlyphFromCharCode(nCharCode);
207 CPDF_Font* pFont = NULL; local
209 pFont = FindFontSameCharset(sAlias, nCharset);
211 if (!pFont) {
213 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset);
216 AddedFont(pFont, sAlia
248 AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, int32_t nCharset) argument
261 AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) argument
[all...]
/external/pdfium/core/src/fxge/android/
H A Dfpf_skiafont.cpp188 CFPF_SkiaPathFont* pFont = (CFPF_SkiaPathFont*)pFontDes; local
189 m_Face = pFontMgr->GetFontFace(pFont->m_pPath, pFont->m_iFaceIndex);
192 CFPF_SkiaFileFont* pFont = (CFPF_SkiaFileFont*)pFontDes; local
193 m_Face = pFontMgr->GetFontFace(pFont->m_pFile, pFont->m_iFaceIndex);
196 CFPF_SkiaBufferFont* pFont = (CFPF_SkiaBufferFont*)pFontDes; local
197 m_Face = pFontMgr->GetFontFace((const uint8_t*)pFont->m_pBuffer,
198 pFont->m_szBuffer, pFont
[all...]
/external/pdfium/core/include/fxge/
H A Dfx_font.h81 FX_BOOL LoadClone(const CFX_Font* pFont);
167 explicit CFX_UnicodeEncoding(CFX_Font* pFont);
180 CFX_UnicodeEncodingEx(CFX_Font* pFont, FX_DWORD EncodingID);
192 CFX_Font* pFont,
444 CFX_FaceCache* GetCachedFace(CFX_Font* pFont);
445 void ReleaseCachedFace(CFX_Font* pFont);
455 CFX_AutoFontCache(CFX_FontCache* pFontCache, CFX_Font* pFont) argument
456 : m_pFontCache(pFontCache), m_pFont(pFont) {}
461 #define FX_FONTCACHE_DEFINE(pFontCache, pFont) \
462 CFX_AutoFontCache autoFontCache((pFontCache), (pFont))
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_page/
H A Dfpdf_page.cpp114 CPDF_Font* pFont = m_TextState.GetFont(); local
115 if (pFont->GetFontType() != PDFFONT_CIDFONT) {
118 if (!((CPDF_CIDFont*)pFont)->IsVertWriting()) {
121 FX_WORD CID = ((CPDF_CIDFont*)pFont)->CIDFromCharCode(pInfo->m_CharCode);
125 ((CPDF_CIDFont*)pFont)->GetVertOrigin(CID, vx, vy);
227 CPDF_Font* pFont = m_TextState.GetFont(); local
230 m_nChars += pFont->CountChar(pStrs[i], pStrs[i].GetLength());
241 m_pCharCodes[index++] = pFont->GetNextChar(segment, len, offset);
250 m_pCharCodes = (FX_DWORD*)(uintptr_t)pFont->GetNextChar(
317 CPDF_Font* pFont local
331 CPDF_Font* pFont = m_TextState.GetFont(); local
350 CPDF_Font* pFont = m_TextState.GetFont(); local
402 CPDF_Font* pFont = m_TextState.GetFont(); local
530 CPDF_Font* pFont = m_TextState.GetFont(); local
[all...]
H A Dfpdf_page_doc.cpp237 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pFontDict); local
238 if (!pFont) {
242 fontData = new CPDF_CountedFont(pFont);
245 fontData->reset(pFont);
257 CPDF_Font* pFont = fontData->get(); local
258 if (!pFont)
260 if (pFont->GetBaseFont() != fontName)
262 if (pFont->IsEmbedded())
264 if (pFont->GetFontType() != PDFFONT_TYPE1)
266 if (pFont
284 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pDict); local
[all...]
/external/pdfium/core/src/fxge/win32/
H A Ddwrite_int.h57 void DwDeleteFont(void* pFont);
/external/pdfium/core/src/fpdftext/
H A Dfpdf_text_search.cpp71 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) { argument
75 int w = pFont->GetCharWidthF(charCode);
78 pFont->AppendChar(str, charCode);
79 w = pFont->GetStringWidth(str, 1);
82 pFont->GetCharBBox(charCode, BBox);
153 CPDF_Font* pFont = pObj->GetFont(); local
236 FX_DWORD space_charcode = pFont->CharCodeFromUnicode(' ');
239 threshold = fontsize_h * pFont->GetCharWidthF(space_charcode) / 1000;
248 int this_width = FXSYS_abs(GetCharWidth(item.m_CharCode, pFont));
279 CFX_WideString unicode_str = pFont
[all...]
/external/pdfium/core/include/fpdfapi/
H A Dfpdf_render.h167 CPDF_Font* pFont,
175 CPDF_Font* pFont,
188 CPDF_Font* pFont,
202 CPDF_Font* pFont,
212 CPDF_Font* pFont,
/external/pdfium/xfa/src/fxfa/src/app/
H A Dxfa_fontmgr.cpp1772 IFX_Font* pFont = pFDEFontMgr->LoadFont((const FX_WCHAR*)wsFontName, local
1777 IFX_Font* pFont = IFX_Font::LoadFont( local
1781 if (!pFont && hDoc) {
1804 pFont = pFDEFontMgr->LoadFont(wsReplace, dwStyle, wCodePage);
1806 pFont = IFX_Font::LoadFont((const FX_WCHAR*)wsReplace,
1810 if (pFont != NULL) {
1819 if (pFont) {
1820 m_CacheFonts.Add(pFont);
1822 return pFont;
1830 IFX_Font* pFont local
1834 IFX_Font* pFont = local
1873 IFX_Font* pFont = NULL; local
1934 IFX_Font* pFont = NULL; local
2038 GetCharWidth(IFX_Font* pFont, FX_WCHAR wUnicode, int32_t& iWidth, FX_BOOL bCharCode) argument
2065 IFX_Font* pFont = NULL; local
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_edit/
H A Dfpdf_edit_doc.cpp548 CPDF_Font* CPDF_Document::AddMacFont(CTFontRef pFont, argument
551 CTFontRef font = (CTFontRef)pFont;
797 static void _InsertWidthArray1(CFX_Font* pFont, argument
807 widths[i] = pFont->GetGlyphWidth(glyph_index);
827 CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert) { argument
828 if (!pFont) {
835 CFX_ByteString basefont = pFont->GetFamilyName();
838 if (pFont->IsBold()) {
841 if (pFont->IsItalic()) {
844 if (pFont
[all...]
/external/pdfium/fpdfsdk/include/pdfwindow/
H A DPWL_FontMap.h17 CPDF_Font* pFont; member in struct:CPWL_FontMap_Data
87 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias);
96 int32_t AddFontData(CPDF_Font* pFont,
/external/pdfium/xfa/src/fgas/src/layout/
H A Dfx_unicode.cpp82 IFX_Font* pFont,
86 if (pFont == NULL || !bVertical) {
98 if (pFont->GetCharBBox(wch, rtBBox, bMBCSCode)) {
80 FX_AdjustJapCharDisplayPos(FX_WCHAR wch, FX_BOOL bMBCSCode, IFX_Font* pFont, FX_FLOAT fFontSize, FX_BOOL bVertical, CFX_PointF& ptOffset) argument

Completed in 3440 milliseconds

1234