/external/pdfium/core/src/fpdfapi/fpdf_render/ |
D | fpdf_render_text.cpp | 197 CPDF_Font* pFont = textobj->m_TextState.GetFont(); in ProcessText() local 198 if (pFont->GetFontType() == PDFFONT_TYPE3) { in ProcessText() 212 … if (pFont->GetFace() == NULL && !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { in ProcessText() 220 … if (pFont->GetFace() == NULL && !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { in ProcessText() 256 … DrawTextPathWithPattern(textobj, pObj2Device, pFont, font_size, &text_matrix, bFill, bStroke); in ProcessText() 284 …extPath(m_pDevice, textobj->m_nChars, textobj->m_pCharCodes, textobj->m_pCharPos, pFont, font_size, in ProcessText() 288 …malText(m_pDevice, textobj->m_nChars, textobj->m_pCharCodes, textobj->m_pCharPos, pFont, font_size, in ProcessText() 291 CPDF_Type3Cache* CPDF_RenderStatus::GetCachedType3(CPDF_Type3Font* pFont) in GetCachedType3() argument 293 if (pFont->m_pDocument == NULL) { in GetCachedType3() 296 pFont->m_pDocument->GetPageData()->GetFont(pFont->GetFontDict(), FALSE); in GetCachedType3() [all …]
|
/external/pdfium/core/src/fxge/apple/ |
D | fx_apple_platform.cpp | 33 CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(CFX_Font * pFont, in RenderGlyph_Nativetext() argument 44 CFX_Font* pFont, in _CGDrawGlyphRun() argument 66 if (!pFont->m_pPlatformFont) { in _CGDrawGlyphRun() 67 if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) { in _CGDrawGlyphRun() 70 pFont->m_pPlatformFont = quartz2d.CreateFont(pFont->m_pFontData, pFont->m_dwSize); in _CGDrawGlyphRun() 71 if (NULL == pFont->m_pPlatformFont) { in _CGDrawGlyphRun() 94 pFont->m_pPlatformFont, in _CGDrawGlyphRun() 105 CFX_Font * pFont, in DrawDeviceText() argument 112 if (!pFont) { in DrawDeviceText() 115 FX_BOOL bBold = pFont->IsBold(); in DrawDeviceText() [all …]
|
D | fx_quartz_device.cpp | 61 void CQuartz2D::DestroyFont(void* pFont) in DestroyFont() argument 63 CGFontRelease((CGFontRef)pFont); in DestroyFont() 804 CFX_Font* pFont, in CG_DrawGlypRun() argument 817 if (!pFont->m_pPlatformFont) { in CG_DrawGlypRun() 818 if (pFont->GetPsName() == CFX_WideString::FromLocal("DFHeiStd-W5")) { in CG_DrawGlypRun() 821 pFont->m_pPlatformFont = quartz2d.CreateFont(pFont->m_pFontData, pFont->m_dwSize); in CG_DrawGlypRun() 822 if (NULL == pFont->m_pPlatformFont) { in CG_DrawGlypRun() 845 CGContextSetFont(_context, (CGFontRef)pFont->m_pPlatformFont); in CG_DrawGlypRun() 880 CFX_Font* pFont, in DrawDeviceText() argument 888 if (NULL == pFont || NULL == _context) { in DrawDeviceText() [all …]
|
/external/pdfium/core/src/fpdfdoc/ |
D | doc_utils.cpp | 246 CPDF_Font* pFont = NULL; in InitInterFormDict() local 249 pFont = CPDF_InterForm::AddStandardFont(pDocument, "Helvetica"); in InitInterFormDict() 250 if (pFont != NULL) { in InitInterFormDict() 251 AddInterFormFont(pFormDict, pDocument, pFont, csBaseName); in InitInterFormDict() 256 if (pFont == NULL || csFontName != "Helvetica") { in InitInterFormDict() 257 pFont = CPDF_InterForm::AddNativeFont(pDocument); in InitInterFormDict() 258 if (pFont != NULL) { in InitInterFormDict() 260 AddInterFormFont(pFormDict, pDocument, pFont, csBaseName); in InitInterFormDict() 265 if (pFont != NULL) { in InitInterFormDict() 461 CPDF_Font* pFont = GetDefaultInterFormFont(pFormDict, pDocument); in GetNativeInterFormFont() local [all …]
|
D | doc_utils.h | 18 FX_BOOL FindInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont, CFX_ByteString& csN… 19 …ormDict, CPDF_Document* pDocument, CFX_ByteString csFontName, CPDF_Font*& pFont, CFX_ByteString& c… 20 …t(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont, CFX_ByteString& c… 23 void RemoveInterFormFont(CPDF_Dictionary* pFormDict, const CPDF_Font* pFont); 26 …efaultInterFormFont(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument, const CPDF_Font* pFont);
|
D | doc_formcontrol.cpp | 303 CPDF_Font *pFont = m_pField->m_pForm->m_pDocument->LoadFont(pElement); in GetDefaultControlFont() local 304 if (pFont != NULL) { in GetDefaultControlFont() 305 return pFont; in GetDefaultControlFont() 309 CPDF_Font *pFont = m_pField->m_pForm->GetFormFont(csFontNameTag); in GetDefaultControlFont() local 310 if (pFont != NULL) { in GetDefaultControlFont() 311 return pFont; in GetDefaultControlFont() 319 CPDF_Font *pFont = m_pField->m_pForm->m_pDocument->LoadFont(pElement); in GetDefaultControlFont() local 320 if (pFont != NULL) { in GetDefaultControlFont() 321 return pFont; in GetDefaultControlFont()
|
D | doc_form.cpp | 404 CPDF_Font* pFont = NULL; in AddSystemDefaultFont() local 413 pFont = ((CPDF_Document*)pDocument)->AddWindowsFont(&lf, FALSE, TRUE); in AddSystemDefaultFont() 416 return pFont; in AddSystemDefaultFont() 467 CPDF_Font* pFont = NULL; in AddStandardFont() local 469 pFont = ((CPDF_Document*)pDocument)->AddStandardFont(csFontName, NULL); in AddStandardFont() 472 pFont = ((CPDF_Document*)pDocument)->AddStandardFont(csFontName, &encoding); in AddStandardFont() 474 return pFont; in AddStandardFont() 587 CPDF_Font* pFont = NULL; in AddNativeFont() local 593 pFont = AddStandardFont(pDocument, csFontName); in AddNativeFont() 595 pFont = ((CPDF_Document*)pDocument)->AddWindowsFont(&lf, FALSE, TRUE); in AddNativeFont() [all …]
|
/external/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_FontMap.cpp | 58 return pData->pFont; in GetPDFFont() 137 if (pData->pFont) in CharCodeFromUnicode() 139 if (pData->pFont->IsUnicodeCompatible()) in CharCodeFromUnicode() 141 int nCharCode = pData->pFont->CharCodeFromUnicode(word); in CharCodeFromUnicode() 142 pData->pFont->GlyphFromCharCode(nCharCode); in CharCodeFromUnicode() 261 CPDF_Font* pFont = NULL; in GetFontIndex() local 264 pFont = FindFontSameCharset(sAlias, nCharset); in GetFontIndex() 266 if (!pFont) in GetFontIndex() 269 pFont = AddFontToDocument(GetDocument(), sTemp, nCharset); in GetFontIndex() 283 AddedFont(pFont, sAlias); in GetFontIndex() [all …]
|
/external/pdfium/core/src/fxge/android/ |
D | fpf_skiafont.cpp | 176 CFPF_SkiaPathFont *pFont = (CFPF_SkiaPathFont*)pFontDes; in InitFont() local 177 m_Face = pFontMgr->GetFontFace(pFont->m_pPath, pFont->m_iFaceIndex); in InitFont() 181 CFPF_SkiaFileFont *pFont = (CFPF_SkiaFileFont*)pFontDes; in InitFont() local 182 m_Face = pFontMgr->GetFontFace(pFont->m_pFile, pFont->m_iFaceIndex); in InitFont() 186 CFPF_SkiaBufferFont *pFont = (CFPF_SkiaBufferFont*)pFontDes; in InitFont() local 187 …m_Face = pFontMgr->GetFontFace((FX_LPCBYTE)pFont->m_pBuffer, pFont->m_szBuffer, pFont->m_iFaceInde… in InitFont()
|
D | fpf_skiafontmgr.cpp | 247 CFPF_SkiaFontDescriptor *pFont = (CFPF_SkiaFontDescriptor*)m_FontFaces.ElementAt(i); in ~CFPF_SkiaFontMgr() local 248 if (pFont) { in ~CFPF_SkiaFontMgr() 249 delete pFont; in ~CFPF_SkiaFontMgr() 285 IFPF_Font *pFont = NULL; in CreateFont() local 286 if (m_FamilyFonts.Lookup((void*)(FX_UINTPTR)dwHash, (void*&)pFont)) { in CreateFont() 287 if (pFont) { in CreateFont() 288 return pFont->Retain(); in CreateFont() 355 CFPF_SkiaFont *pFont = new CFPF_SkiaFont; in CreateFont() local 356 if (pFont->InitFont(this, pFontDes, bsFamilyname, dwStyle, uCharset)) { in CreateFont() 357 m_FamilyFonts.SetAt((void*)(FX_UINTPTR)dwHash, (void*)pFont); in CreateFont() [all …]
|
/external/pdfium/fpdfsdk/src/formfiller/ |
D | FFL_CBA_Fontmap.cpp | 74 void CBA_FontMap::SetDefaultFont(CPDF_Font * pFont, const CFX_ByteString & sFontName) in SetDefaultFont() argument 76 ASSERT(pFont != NULL); in SetDefaultFont() 80 m_pDefaultFont = pFont; in SetDefaultFont() 148 CPDF_Font* pFont = pDocument->LoadFont(pElement); in FindResFontSameCharset() local 149 if (pFont == NULL) continue; in FindResFontSameCharset() 150 const CFX_SubstFont* pSubst = pFont->GetSubstFont(); in FindResFontSameCharset() 155 pFind = pFont; in FindResFontSameCharset() 161 void CBA_FontMap::AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias) in AddedFont() argument 163 AddFontToAnnotDict(pFont, sFontAlias); in AddedFont() 166 void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias) in AddFontToAnnotDict() argument [all …]
|
/external/pdfium/core/src/fxge/ge/ |
D | fx_ge_text.cpp | 128 CFX_Font* pFont, CFX_FontCache* pCache, in DrawNormalText() argument 137 …if (!(text_flags & FXFONT_CIDFONT) && pFont->GetPsName().Find(CFX_WideString::FromLocal("+ZJHL")) … in DrawNormalText() 139 if (pFont->GetPsName() != CFX_WideString::FromLocal("CNAAJI+cmex10")) in DrawNormalText() 142 …if (m_pDeviceDriver->DrawDeviceText(nChars, pCharPos, pFont, pCache, pText2Device, font_size, fill… in DrawNormalText() 154 if (pFont->GetPsName() != CFX_WideString::FromLocal("CNAAJI+cmex10")) in DrawNormalText() 157 …if (m_pDeviceDriver->DrawDeviceText(nChars, pCharPos, pFont, pCache, pText2Device, font_size, fill… in DrawNormalText() 170 … if (pFont->GetFace() != NULL || (pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_GLYPHPATH)) { in DrawNormalText() 172 …return DrawTextPath(nChars, pCharPos, pFont, pCache, font_size, pText2Device, NULL, NULL, fill_col… in DrawNormalText() 180 … if (pFont->GetFace() == NULL && !(pFont->GetSubstFont()->m_SubstFlags & FXFONT_SUBST_CLEARTYPE)) { in DrawNormalText() 203 CFX_FaceCache* pFaceCache = pCache->GetCachedFace(pFont); in DrawNormalText() [all …]
|
D | fx_ge_linux.cpp | 188 CFontFaceInfo* pFont = NULL; in FindFont() local 189 m_FontList.GetNextAssoc(pos, bsName, (FX_LPVOID&)pFont); in FindFont() 190 if (!(pFont->m_Charsets & charset_flag) && charset != FXFONT_DEFAULT_CHARSET) { in FindFont() 201 iSimilarValue = _LinuxGetSimilarValue(weight, bItalic, pitch_family, pFont->m_Styles); in FindFont() 204 pFind = pFont; in FindFont()
|
/external/pdfium/core/include/fxge/ |
D | fx_font.h | 157 IFX_FontEncoding* FXGE_CreateUnicodeEncoding(CFX_Font* pFont); 351 CFX_FaceCache* GetCachedFace(CFX_Font* pFont); 352 void ReleaseCachedFace(CFX_Font* pFont); 362 CFX_AutoFontCache(CFX_FontCache* pFontCache, CFX_Font* pFont) in CFX_AutoFontCache() argument 364 , m_pFont(pFont) in CFX_AutoFontCache() 374 #define FX_FONTCACHE_DEFINE(pFontCache, pFont) CFX_AutoFontCache autoFontCache((pFontCache), (pFont… argument 386 …const CFX_GlyphBitmap* LoadGlyphBitmap(CFX_Font* pFont, FX_DWORD glyph_index, FX_BOOL bFontStyle, … 388 const CFX_PathData* LoadGlyphPath(CFX_Font* pFont, FX_DWORD glyph_index, int dest_width); 394 CFX_GlyphBitmap* RenderGlyph(CFX_Font* pFont, FX_DWORD glyph_index, FX_BOOL bFontStyle, 396 CFX_GlyphBitmap* RenderGlyph_Nativetext(CFX_Font* pFont, FX_DWORD glyph_index, [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_edit/ |
D | fpdf_edit_doc.cpp | 601 CPDF_Font* CPDF_Document::AddMacFont(CTFontRef pFont, FX_BOOL bVert, FX_BOOL bTranslateName) in AddMacFont() argument 603 CTFontRef font = (CTFontRef)pFont; in AddMacFont() 843 static void _InsertWidthArray1(CFX_Font* pFont, IFX_FontEncoding* pEncoding, FX_WCHAR start, FX_WCH… in _InsertWidthArray1() argument 850 widths[i] = pFont->GetGlyphWidth(glyph_index); in _InsertWidthArray1() 869 CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert) in AddFont() argument 871 if (pFont == NULL) { in AddFont() 876 CFX_ByteString basefont = pFont->GetFamilyName(); in AddFont() 879 if (pFont->IsBold()) { in AddFont() 882 if (pFont->IsItalic()) { in AddFont() 885 if (pFont->IsFixedWidth()) { in AddFont() [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_page/ |
D | fpdf_page.cpp | 122 CPDF_Font* pFont = m_TextState.GetFont(); in GetItemInfo() local 123 if (pFont->GetFontType() != PDFFONT_CIDFONT) { in GetItemInfo() 126 if (!((CPDF_CIDFont*)pFont)->IsVertWriting()) { in GetItemInfo() 129 FX_WORD CID = ((CPDF_CIDFont*)pFont)->CIDFromCharCode(pInfo->m_CharCode); in GetItemInfo() 133 ((CPDF_CIDFont*)pFont)->GetVertOrigin(CID, vx, vy); in GetItemInfo() 234 CPDF_Font* pFont = m_TextState.GetFont(); in SetSegments() local 237 m_nChars += pFont->CountChar(pStrs[i], pStrs[i].GetLength()); in SetSegments() 248 m_pCharCodes[index++] = pFont->GetNextChar(segment, len, offset); in SetSegments() 257 … m_pCharCodes = (FX_DWORD*)(FX_UINTPTR)pFont->GetNextChar(pStrs[0], pStrs[0].GetLength(), offset); in SetSegments() 321 CPDF_Font* pFont = m_TextState.GetFont(); in GetCharWidth() local [all …]
|
D | fpdf_page_doc.cpp | 301 CPDF_Font* pFont = CPDF_Font::CreateFontF(m_pPDFDoc, pFontDict); in GetFont() local 302 if (!pFont) { in GetFont() 309 fontData->m_Obj = pFont; in GetFont() 311 return pFont; in GetFont() 323 CPDF_Font* pFont = fontData->m_Obj; in GetStandardFont() local 324 if (!pFont) { in GetStandardFont() 327 if (pFont->GetBaseFont() != fontName) { in GetStandardFont() 330 if (pFont->IsEmbedded()) { in GetStandardFont() 333 if (pFont->GetFontType() != PDFFONT_TYPE1) { in GetStandardFont() 336 if (pFont->GetFontDict()->KeyExist(FX_BSTRC("Widths"))) { in GetStandardFont() [all …]
|
/external/pdfium/core/src/fpdftext/ |
D | fpdf_text_search.cpp | 64 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) in GetCharWidth() argument 69 int w = pFont->GetCharWidthF(charCode); in GetCharWidth() 72 pFont->AppendChar(str, charCode); in GetCharWidth() 73 w = pFont->GetStringWidth(str, 1); in GetCharWidth() 76 pFont->GetCharBBox(charCode, BBox); in GetCharWidth() 139 CPDF_Font* pFont = pObj->GetFont(); in ProcessObject() local 222 FX_DWORD space_charcode = pFont->CharCodeFromUnicode(' '); in ProcessObject() 225 threshold = fontsize_h * pFont->GetCharWidthF(space_charcode) / 1000 ; in ProcessObject() 234 int this_width = FXSYS_abs(GetCharWidth(item.m_CharCode, pFont)); in ProcessObject() 264 CFX_WideString unicode_str = pFont->UnicodeFromCharCode(item.m_CharCode); in ProcessObject()
|
D | fpdf_text.cpp | 58 CPDF_Font* pFont = pText->m_TextState.GetFont(); in ProcessObject() local 65 FX_DWORD space_charcode = pFont->CharCodeFromUnicode(' '); in ProcessObject() 68 spacew = fontsize_h * pFont->GetCharWidthF(space_charcode) / 1000; in ProcessObject() 83 pFont->GetCharBBox(charcode, char_box); in ProcessObject() 93 pFont->AppendChar(str, charcode); in ProcessObject() 95 char_bottom, spacew, fontsize_v, str, pFont); in ProcessObject() 125 topy, bottomy, spacew, fontsize_v, segment, pFont); in ProcessObject() 131 topy, bottomy, spacew, fontsize_v, segment, pFont); in ProcessObject() 134 pFont->AppendChar(segment, ' '); in ProcessObject() 140 pFont->AppendChar(segment, charcode); in ProcessObject() [all …]
|
/external/pdfium/fpdfsdk/include/formfiller/ |
D | FFL_CBA_Fontmap.h | 26 void SetDefaultFont(CPDF_Font * pFont, const CFX_ByteString & sFontName); 33 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias); 39 void AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAlias);
|
/external/pdfium/core/src/fpdfapi/fpdf_font/ |
D | ttgsubtable.cpp | 425 IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont) in FXGE_CreateGSUBTable() argument 427 if (!pFont) { in FXGE_CreateGSUBTable() 430 if (NULL == pFont->m_pGsubData) { in FXGE_CreateGSUBTable() 432 …int error = FXFT_Load_Sfnt_Table(pFont->m_Face, FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, NULL, &length); in FXGE_CreateGSUBTable() 434 pFont->m_pGsubData = (unsigned char*)FX_Alloc(FX_BYTE, length); in FXGE_CreateGSUBTable() 436 if (!pFont->m_pGsubData) { in FXGE_CreateGSUBTable() 440 …int error = FXFT_Load_Sfnt_Table(pFont->m_Face, FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, pFont->m_pGsub… in FXGE_CreateGSUBTable() 441 if (!error && pFont->m_pGsubData) { in FXGE_CreateGSUBTable() 443 if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont->m_pGsubData)) { in FXGE_CreateGSUBTable()
|
D | fpdf_font.cpp | 84 void CPDF_FontGlobals::Set(void* key, int index, CPDF_Font* pFont) in Set() argument 94 font_array->SetFont(index, pFont); in Set() 402 CPDF_Font* pFont = pFontGlobals->Find(pDoc, font_id); in GetStockFont() local 403 if (pFont) { in GetStockFont() 404 return pFont; in GetStockFont() 411 pFont = CPDF_Font::CreateFontF(NULL, pDict); in GetStockFont() 412 pFontGlobals->Set(pDoc, font_id, pFont); in GetStockFont() 413 return pFont; in GetStockFont() 425 CPDF_Font* pFont; in CreateFontF() local 441 pFont = new CPDF_CIDFont; in CreateFontF() [all …]
|
/external/pdfium/core/src/reflow/ |
D | reflowedpage.h | 55 int GetCharWidth(FX_DWORD charCode, CPDF_Font* pFont) const; 60 …CRF_CharState* GetCharState(CPDF_TextObject* pObj, CPDF_Font* pFont, FX_FLOAT fHeight, FX_ARGB co… 263 pFont = NULL; in CRF_TextDataAtt() 269 pFont = font; in CRF_TextDataAtt() 273 CPDF_Font* pFont; member 279 if (data1.pFont != data2.pFont) { in isTextDataAttSame()
|
/external/pdfium/core/include/fpdfapi/ |
D | fpdf_render.h | 194 CPDF_Font* pFont, 200 CPDF_Font* pFont, 211 CPDF_Font* pFont, FX_FLOAT font_size, 217 … CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pText2Device, 221 … CPDF_Font* pFont, FX_FLOAT font_size, const CFX_AffineMatrix* pText2Device,
|
/external/pdfium/fpdfsdk/include/pdfwindow/ |
D | PWL_FontMap.h | 18 CPDF_Font* pFont; member 95 virtual void AddedFont(CPDF_Font* pFont, const CFX_ByteString& sFontAlias); 103 …FX_INT32 AddFontData(CPDF_Font* pFont, const CFX_ByteString& sFontAlias, FX_INT32 nCharset…
|