Searched defs:pFont (Results 1 - 25 of 42) sorted by relevance

12

/external/pdfium/core/src/fxge/android/
H A Dfpf_skiafont.cpp176 CFPF_SkiaPathFont *pFont = (CFPF_SkiaPathFont*)pFontDes; local
177 m_Face = pFontMgr->GetFontFace(pFont->m_pPath, pFont->m_iFaceIndex);
181 CFPF_SkiaFileFont *pFont = (CFPF_SkiaFileFont*)pFontDes; local
182 m_Face = pFontMgr->GetFontFace(pFont->m_pFile, pFont->m_iFaceIndex);
186 CFPF_SkiaBufferFont *pFont = (CFPF_SkiaBufferFont*)pFontDes; local
187 m_Face = pFontMgr->GetFontFace((FX_LPCBYTE)pFont->m_pBuffer, pFont->m_szBuffer, pFont
[all...]
H A Dfpf_skiafontmgr.cpp247 CFPF_SkiaFontDescriptor *pFont = (CFPF_SkiaFontDescriptor*)m_FontFaces.ElementAt(i); local
248 if (pFont) {
249 delete pFont;
285 IFPF_Font *pFont = NULL; local
286 if (m_FamilyFonts.Lookup((void*)(uintptr_t)dwHash, (void*&)pFont)) {
287 if (pFont) {
288 return pFont->Retain();
355 CFPF_SkiaFont *pFont = FX_NEW CFPF_SkiaFont; local
356 if (pFont) {
357 if (pFont
[all...]
/external/pdfium/core/src/fxge/apple/
H A Dfx_apple_platform.cpp33 CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(CFX_Font * pFont, argument
44 CFX_Font* pFont,
66 if (!pFont->m_pPlatformFont) {
67 if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) {
70 pFont->m_pPlatformFont = quartz2d.CreateFont(pFont->m_pFontData, pFont->m_dwSize);
71 if (NULL == pFont->m_pPlatformFont) {
94 pFont->m_pPlatformFont,
105 CFX_Font * pFont,
41 _CGDrawGlyphRun(CGContextRef pContext, int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, const CFX_AffineMatrix* pObject2Device, FX_FLOAT font_size, FX_DWORD argb, int alpha_flag, void* pIccTransform) argument
103 DrawDeviceText(int nChars, const FXTEXT_CHARPOS * pCharPos, CFX_Font * pFont, CFX_FontCache * pCache, const CFX_AffineMatrix * pObject2Device, FX_FLOAT font_size, FX_DWORD argb, int alpha_flag, void* pIccTransform) argument
[all...]
H A Dfx_quartz_device.cpp61 void CQuartz2D::DestroyFont(void* pFont) argument
63 CGFontRelease((CGFontRef)pFont);
804 CFX_Font* pFont,
817 if (!pFont->m_pPlatformFont) {
818 if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) {
821 pFont->m_pPlatformFont = quartz2d.CreateFont(pFont->m_pFontData, pFont->m_dwSize);
822 if (NULL == pFont->m_pPlatformFont) {
845 CGContextSetFont(_context, (CGFontRef)pFont
802 CG_DrawGlypRun(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, const CFX_AffineMatrix* pGlyphMatrix, const CFX_AffineMatrix* pObject2Device, FX_FLOAT font_size, FX_DWORD argb, int alpha_flag, void* pIccTransform) argument
879 DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, CFX_FontCache* pCache, const CFX_AffineMatrix* pObject2Device, FX_FLOAT font_size, FX_DWORD color, int alpha_flag , void* pIccTransform) argument
[all...]
/external/pdfium/fpdfsdk/include/pdfwindow/
H A DPWL_FontMap.h12 CPDF_Font* pFont; member in struct:CPWL_FontMap_Data
90 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias);
98 FX_INT32 AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, FX_INT32 nCharset = DEFAULT_CHARSET);
/external/pdfium/core/src/fxge/ge/
H A Dfx_ge_linux.cpp21 FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, argument
27 CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(CFX_Font* pFont, FX_DWORD glyph_index, const CFX_AffineMatrix* pMatrix, argument
213 CFontFaceInfo* pFont = NULL; local
214 m_FontList.GetNextAssoc(pos, bsName, (FX_LPVOID&)pFont);
215 if (!(pFont->m_Charsets & charset_flag) && charset != FXFONT_DEFAULT_CHARSET) {
226 iSimilarValue = _LinuxGetSimilarValue(weight, bItalic, pitch_family, pFont->m_Styles);
229 pFind = pFont;
H A Dfx_ge_font.cpp408 CFX_UnicodeEncoding::CFX_UnicodeEncoding(CFX_Font* pFont) argument
410 m_pFont = pFont;
453 IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont) argument
456 pEncoding = FX_NEW CFX_UnicodeEncoding(pFont);
H A Dfx_ge_ps.cpp31 CPSFont* pFont = m_PSFontList[i]; local
32 delete pFont;
509 void CFX_PSRenderer::FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_Font* pFont, const FXTEXT_CHARPOS& charpos, argument
515 if (pPSFont->m_Glyphs[j].m_pFont == pFont && pPSFont->m_Glyphs[j].m_GlyphIndex == charpos.m_GlyphIndex) {
550 pPSFont->m_Glyphs[ps_glyphindex].m_pFont = pFont;
564 const CFX_PathData* pPathData = pFaceCache->LoadGlyphPath(pFont, charpos.m_GlyphIndex, charpos.m_FontCharWidth);
604 FX_BOOL CFX_PSRenderer::DrawText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, argument
625 CFX_FaceCache* pFaceCache = pCache->GetCachedFace(pFont);
626 FX_FONTCACHE_DEFINE(pCache, pFont);
630 FindPSFontGlyph(pFaceCache, pFont, pCharPo
[all...]
/external/pdfium/fpdfsdk/src/formfiller/
H A DFFL_CBA_Fontmap.cpp74 void CBA_FontMap::SetDefaultFont(CPDF_Font * pFont, const CFX_ByteString & sFontName) argument
76 ASSERT(pFont != NULL);
80 m_pDefaultFont = pFont;
84 // m_sDefaultFontName = pFont->GetFontTypeName();
148 CPDF_Font* pFont = pDocument->LoadFont(pElement); local
149 if (pFont == NULL) continue;
150 const CFX_SubstFont* pSubst = pFont->GetSubstFont();
155 pFind = pFont;
161 void CBA_FontMap::AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) argument
163 AddFontToAnnotDict(pFont, sFontAlia
166 AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias) argument
[all...]
/external/pdfium/fpdfsdk/src/pdfwindow/
H A DPWL_FontMap.cpp58 return pData->pFont;
137 if (pData->pFont)
139 if (pData->pFont->IsUnicodeCompatible())
141 int nCharCode = pData->pFont->CharCodeFromUnicode(word);
142 pData->pFont->GlyphFromCharCode(nCharCode);
261 CPDF_Font* pFont = NULL; local
264 pFont = FindFontSameCharset(sAlias, nCharset);
266 if (!pFont)
269 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset);
283 AddedFont(pFont, sAlia
330 AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, FX_INT32 nCharset) argument
342 AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) argument
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_font/
H A Dttgsubtable.cpp425 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont) argument
427 if (!pFont) {
430 if (NULL == pFont->m_pGsubData) {
432 int error = FXFT_Load_Sfnt_Table(pFont->m_Face, FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, NULL, &length);
434 pFont->m_pGsubData = (unsigned char*)FX_Alloc(FX_BYTE, length);
436 if (!pFont->m_pGsubData) {
440 int error = FXFT_Load_Sfnt_Table(pFont->m_Face, FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, pFont->m_pGsubData, NULL);
441 if (!error && pFont->m_pGsubData) {
446 if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont
[all...]
/external/pdfium/core/src/fpdftext/
H A Dfpdf_text_search.cpp64 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) argument
69 int w = pFont->GetCharWidthF(charCode);
72 pFont->AppendChar(str, charCode);
73 w = pFont->GetStringWidth(str, 1);
76 pFont->GetCharBBox(charCode, BBox);
142 CPDF_Font* pFont = pObj->GetFont(); local
226 FX_DWORD space_charcode = pFont->CharCodeFromUnicode(' ');
229 threshold = fontsize_h * pFont->GetCharWidthF(space_charcode) / 1000 ;
238 int this_width = FXSYS_abs(GetCharWidth(item.m_CharCode, pFont));
268 CFX_WideString unicode_str = pFont
[all...]
H A Dfpdf_text.cpp59 CPDF_Font* pFont = pText->m_TextState.GetFont(); local
67 FX_DWORD space_charcode = pFont->CharCodeFromUnicode(' ');
70 spacew = fontsize_h * pFont->GetCharWidthF(space_charcode) / 1000;
85 pFont->GetCharBBox(charcode, char_box);
95 pFont->AppendChar(str, charcode);
97 char_bottom, spacew, fontsize_v, str, pFont);
127 topy, bottomy, spacew, fontsize_v, segment, pFont);
135 topy, bottomy, spacew, fontsize_v, segment, pFont);
138 pFont->AppendChar(segment, ' ');
144 pFont
155 InsertTextBox(CTextBaseLine* pBaseLine, FX_FLOAT basey, FX_FLOAT leftx, FX_FLOAT rightx, FX_FLOAT topy, FX_FLOAT bottomy, FX_FLOAT spacew, FX_FLOAT fontsize_v, CFX_ByteString& str, CPDF_Font* pFont) argument
[all...]
/external/pdfium/fpdfsdk/src/fxedit/
H A Dfxet_pageobjs.cpp28 static void DrawTextString(CFX_RenderDevice* pDevice, const CPDF_Point& pt, CPDF_Font* pFont, FX_FLOAT fFontSize, CPDF_Matrix* pUser2Device, argument
34 if (pFont)
53 CPDF_TextRenderer::DrawTextString(pDevice,x, y, pFont, fFontSize, &mt, str, crTextFill, crTextStroke, &gsd, &ro);
56 CPDF_TextRenderer::DrawTextString(pDevice,x, y, pFont, fFontSize, &mt, str, crTextFill, 0, NULL, &ro);
72 CPDF_TextRenderer::DrawTextString(pDevice,x, y, pFont, fFontSize, pUser2Device, str, crTextFill, crTextStroke, &gsd, &ro);
75 CPDF_TextRenderer::DrawTextString(pDevice,x, y, pFont, fFontSize, pUser2Device, str, crTextFill, 0, NULL, &ro);
441 CPDF_Font* pFont, FX_FLOAT fFontSize, FX_FLOAT fCharSpace, FX_INT32 nHorzScale,
447 pTextStateData->m_pFont = pFont;
440 AddTextObjToPageObjects(CPDF_PageObjects* pPageObjs, FX_COLORREF crText, CPDF_Font* pFont, FX_FLOAT fFontSize, FX_FLOAT fCharSpace, FX_INT32 nHorzScale, const CPDF_Point& point, const CFX_ByteString& text) argument
/external/pdfium/core/src/fpdfapi/fpdf_page/
H A Dfpdf_page_doc.cpp278 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pFontDict); local
279 if (!pFont) {
286 fontData->m_Obj = pFont;
288 return pFont;
300 CPDF_Font* pFont = fontData->m_Obj; local
301 if (!pFont) {
304 if (pFont->GetBaseFont() != fontName) {
307 if (pFont->IsEmbedded()) {
310 if (pFont->GetFontType() != PDFFONT_TYPE1) {
313 if (pFont
335 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pDict); local
[all...]
H A Dfpdf_page_graph_state.cpp307 CPDF_Font* pFont = m_pFont; local
308 if (pFont && pFont->m_pDocument) {
309 pFont->m_pDocument->GetPageData()->ReleaseFont(pFont->GetFontDict());
312 void CPDF_TextState::SetFont(CPDF_Font* pFont) argument
320 pStateFont = pFont;
521 CPDF_Array* pFont = (CPDF_Array*)pObject; local
522 m_TextState.GetModify()->m_FontSize = pFont->GetNumber(1);
523 m_TextState.SetFont(pParser->FindFont(pFont
[all...]
/external/pdfium/core/src/fpdfdoc/
H A Ddoc_formcontrol.cpp304 CPDF_Font *pFont = m_pField->m_pForm->m_pDocument->LoadFont(pElement); local
305 if (pFont != NULL) {
306 return pFont;
310 CPDF_Font *pFont = m_pField->m_pForm->GetFormFont(csFontNameTag); local
311 if (pFont != NULL) {
312 return pFont;
320 CPDF_Font *pFont = m_pField->m_pForm->m_pDocument->LoadFont(pElement); local
321 if (pFont != NULL) {
322 return pFont;
H A Ddoc_utils.cpp17 FX_BOOL FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont, CFX_ByteString& csNameTag);
18 FX_BOOL FindInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Document* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& csNameTag);
19 void AddInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont, CFX_ByteString& csNameTag);
22 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont);
25 void SetDefaultInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont);
265 CPDF_Font* pFont = NULL; local
268 pFont = CPDF_InterForm::AddStandardFont(pDocument, "Helvetica");
269 if (pFont != NULL) {
270 AddInterFormFont(pFormDict, pDocument, pFont, csBaseName);
275 if (pFont
480 CPDF_Font* pFont = GetDefaultInterFormFont(pFormDict, pDocument); local
490 FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont, CFX_ByteString& csNameTag) argument
526 FindInterFormFont(CPDF_Dictionary* pFormDict, CPDF_Document* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& csNameTag) argument
572 AddInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont, CFX_ByteString& csNameTag) argument
614 CPDF_Font* pFont = GetNativeInterFormFont(pFormDict, pDocument, charSet, csTemp); local
636 RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont) argument
[all...]
/external/pdfium/core/src/fxge/agg/agg23/
H A Dfx_agg_driver.cpp224 FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, argument
/external/pdfium/core/src/fxge/win32/
H A Dfx_win32_dwrite.cpp273 void CDWriteExt::DwDeleteFont(void* pFont) argument
275 if (pFont) {
276 SafeRelease((IDWriteFontFace**)&pFont);
H A Dfx_win32_print.cpp420 FX_BOOL CPSPrinterDriver::DrawDeviceText(int nChars, const FXTEXT_CHARPOS* pCharPos, CFX_Font* pFont, argument
424 return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pCache, pObject2Device, font_size, color, alpha_flag, pIccTransform);
/external/pdfium/core/include/fxge/
H A Dfx_font.h159 IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont);
348 CFX_FaceCache* GetCachedFace(CFX_Font* pFont);
349 void ReleaseCachedFace(CFX_Font* pFont);
359 CFX_AutoFontCache(CFX_FontCache* pFontCache, CFX_Font* pFont) argument
361 , m_pFont(pFont)
371 #define FX_FONTCACHE_DEFINE(pFontCache, pFont) CFX_AutoFontCache autoFontCache((pFontCache), (pFont))
383 const CFX_GlyphBitmap* LoadGlyphBitmap(CFX_Font* pFont, FX_DWORD glyph_index, FX_BOOL bFontStyle, const CFX_AffineMatrix* pMatrix,
385 const CFX_PathData* LoadGlyphPath(CFX_Font* pFont, FX_DWORD glyph_index, int dest_width);
391 CFX_GlyphBitmap* RenderGlyph(CFX_Font* pFont, FX_DWOR
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_edit/
H A Dfpdf_edit_doc.cpp602 CPDF_Font* CPDF_Document::AddMacFont(CTFontRef pFont, FX_BOOL bVert, FX_BOOL bTranslateName) argument
604 CTFontRef font = (CTFontRef)pFont;
845 static void _InsertWidthArray1(CFX_Font* pFont, IFX_FontEncoding* pEncoding, FX_WCHAR start, FX_WCHAR end, CPDF_Array* pWidthArray) argument
852 widths[i] = pFont->GetGlyphWidth(glyph_index);
871 CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert) argument
873 if (pFont == NULL) {
878 CFX_ByteString basefont = pFont->GetFamilyName();
881 if (pFont->IsBold()) {
884 if (pFont->IsItalic()) {
887 if (pFont
[all...]
/external/pdfium/core/src/fpdfapi/fpdf_render/
H A Dfpdf_render_text.cpp197 CPDF_Font* pFont = textobj->m_TextState.GetFont(); local
198 if (pFont->GetFontType() == PDFFONT_TYPE3) {
212 if (pFont->GetFace() == NULL && !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) {
220 if (pFont->GetFace() == NULL && !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) {
256 DrawTextPathWithPattern(textobj, pObj2Device, pFont, font_size, &text_matrix, bFill, bStroke);
296 return CPDF_TextRenderer::DrawTextPath(m_pDevice, textobj->m_nChars, textobj->m_pCharCodes, textobj->m_pCharPos, pFont, font_size,
300 return CPDF_TextRenderer::DrawNormalText(m_pDevice, textobj->m_nChars, textobj->m_pCharCodes, textobj->m_pCharPos, pFont, font_size,
303 CPDF_Type3Cache* CPDF_RenderStatus::GetCachedType3(CPDF_Type3Font* pFont) argument
311 ReleaseCachedType3(CPDF_Type3Font* pFont) argument
539 Load(int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT FontSize) argument
593 DrawTextPath(CFX_RenderDevice* pDevice, int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pText2User, const CFX_AffineMatrix* pUser2Device, const CFX_GraphStateData* pGraphState, FX_ARGB fill_argb, FX_ARGB stroke_argb, CFX_PathData* pClippingPath, int nFlag) argument
606 DrawTextString(CFX_RenderDevice* pDevice, int left, int top, CPDF_Font* pFont, int height, const CFX_ByteString& str, FX_ARGB argb) argument
617 DrawTextString(CFX_RenderDevice* pDevice, FX_FLOAT origin_x, FX_FLOAT origin_y, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pMatrix, const CFX_ByteString& str, FX_ARGB fill_argb, FX_ARGB stroke_argb, const CFX_GraphStateData* pGraphState, const CPDF_RenderOptions* pOptions) argument
663 DrawNormalText(CFX_RenderDevice* pDevice, int nChars, FX_DWORD* pCharCodes, FX_FLOAT* pCharPos, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pText2Device, FX_ARGB fill_argb, const CPDF_RenderOptions* pOptions) argument
700 DrawTextPathWithPattern(const CPDF_TextObject* textobj, const CFX_AffineMatrix* pObj2Device, CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pTextMatrix, FX_BOOL bFill, FX_BOOL bStroke) argument
[all...]
H A Drender_int.h31 CPDF_Type3Cache(CPDF_Type3Font* pFont) argument
33 m_pFont = pFont;
60 CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont);
67 void ReleaseCachedType3(CPDF_Type3Font* pFont);
141 CPDF_Font* pFont, FX_FLOAT font_size,
148 static class CPDF_Type3Cache* GetCachedType3(CPDF_Type3Font* pFont);

Completed in 289 milliseconds

12