/external/pdfium/fpdfsdk/src/pdfwindow/ |
D | PWL_FontMap.cpp | 52 CPDF_Font* CPWL_FontMap::GetPDFFont(FX_INT32 nFontIndex) in GetPDFFont() argument 54 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) in GetPDFFont() 56 if (CPWL_FontMap_Data* pData = m_aData.GetAt(nFontIndex)) in GetPDFFont() 65 CFX_ByteString CPWL_FontMap::GetPDFFontAlias(FX_INT32 nFontIndex) in GetPDFFontAlias() argument 67 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) in GetPDFFontAlias() 69 if (CPWL_FontMap_Data* pData = m_aData.GetAt(nFontIndex)) in GetPDFFontAlias() 78 FX_BOOL CPWL_FontMap::KnowWord(FX_INT32 nFontIndex, FX_WORD word) in KnowWord() argument 80 if (nFontIndex >=0 && nFontIndex < m_aData.GetSize()) in KnowWord() 82 if (m_aData.GetAt(nFontIndex)) in KnowWord() 84 return CharCodeFromUnicode(nFontIndex, word) >= 0; in KnowWord() [all …]
|
D | PWL_EditCtrl.cpp | 513 FX_INT32 nFontIndex = 0; in GetCaretFont() local 522 nFontIndex = word.nFontIndex; in GetCaretFont() 528 nFontIndex = section.WordProps.nFontIndex; in GetCaretFont() 534 return pFontMap->GetPDFFont(nFontIndex); in GetCaretFont()
|
/external/pdfium/fpdfsdk/src/fxedit/ |
D | fxet_ap.cpp | 11 CFX_ByteString GetPDFWordString(IFX_Edit_FontMap * pFontMap, FX_INT32 nFontIndex, FX_WORD Word, FX_… in GetPDFWordString() argument 17 if (CPDF_Font * pPDFFont = pFontMap->GetPDFFont(nFontIndex)) in GetPDFWordString() 30 dwCharCode = pFontMap->CharCodeFromUnicode(nFontIndex, Word); in GetPDFWordString() 53 static CFX_ByteString GetFontSetString(IFX_Edit_FontMap * pFontMap, FX_INT32 nFontIndex, FX_FLOAT f… in GetFontSetString() argument 59 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); in GetFontSetString() 124 if (word.nFontIndex != nCurFontIndex) in GetEditAppearanceStream() 131 sEditStream << GetFontSetString(pEdit->GetFontMap(),word.nFontIndex,word.fFontSize); in GetEditAppearanceStream() 132 nCurFontIndex = word.nFontIndex; in GetEditAppearanceStream() 153 if (word.nFontIndex != nCurFontIndex) in GetEditAppearanceStream() 155 sEditStream << GetFontSetString(pEdit->GetFontMap(),word.nFontIndex,word.fFontSize); in GetEditAppearanceStream() [all …]
|
D | fxet_pageobjs.cpp | 14 extern CFX_ByteString GetPDFWordString(IFX_Edit_FontMap * pFontMap, FX_INT32 nFontIndex, FX_WORD Wo… 152 FX_INT32 nFontIndex = -1; in DrawEdit() local 233 if (place.LineCmp(oldplace) != 0 || word.nFontIndex != nFontIndex || in DrawEdit() 238 …String(pDevice, CPDF_Point(ptBT.x+ptOffset.x, ptBT.y+ptOffset.y), pFontMap->GetPDFFont(nFontIndex), in DrawEdit() 243 nFontIndex = word.nFontIndex; in DrawEdit() 248 sTextBuf << GetPDFWordString(pFontMap, word.nFontIndex, word.Word, SubWord); in DrawEdit() 252 …F_Point(word.ptWord.x+ptOffset.x, word.ptWord.y+ptOffset.y), pFontMap->GetPDFFont(word.nFontIndex), in DrawEdit() 253 …fFontSize, pUser2Device, GetPDFWordString(pFontMap, word.nFontIndex, word.Word, SubWord), crCurFil… in DrawEdit() 264 …String(pDevice, CPDF_Point(ptBT.x+ptOffset.x, ptBT.y+ptOffset.y), pFontMap->GetPDFFont(nFontIndex), in DrawEdit() 355 …ing(pDevice, CPDF_Point(ptBT.x+ptOffset.x, ptBT.y+ptOffset.y), pFontMap->GetPDFFont(wp.nFontIndex), in DrawRichEdit() [all …]
|
D | fxet_edit.cpp | 150 FX_INT32 CFX_Edit_Provider::GetCharWidth(FX_INT32 nFontIndex, FX_WORD word, FX_INT32 nWordStyle) in GetCharWidth() argument 152 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) in GetCharWidth() 159 charcode = m_pFontMap->CharCodeFromUnicode(nFontIndex, word); in GetCharWidth() 168 FX_INT32 CFX_Edit_Provider::GetTypeAscent(FX_INT32 nFontIndex) in GetTypeAscent() argument 170 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) in GetTypeAscent() 176 FX_INT32 CFX_Edit_Provider::GetTypeDescent(FX_INT32 nFontIndex) in GetTypeDescent() argument 178 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) in GetTypeDescent() 184 FX_INT32 CFX_Edit_Provider::GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex) in GetWordFontIndex() argument 186 return m_pFontMap->GetWordFontIndex(word,charset,nFontIndex); in GetWordFontIndex() 1382 FX_BOOL CFX_Edit::SetRichFontIndex(FX_INT32 nFontIndex) in SetRichFontIndex() argument [all …]
|
/external/pdfium/core/include/fpdfdoc/ |
D | fpdf_ap.h | 18 virtual CPDF_Font* GetPDFFont(FX_INT32 nFontIndex) = 0; 19 virtual CFX_ByteString GetPDFFontAlias(FX_INT32 nFontIndex) = 0; 56 FX_INT32 GetCharWidth(FX_INT32 nFontIndex, FX_WORD word, FX_INT32 nWordStyle); 58 FX_INT32 GetTypeAscent(FX_INT32 nFontIndex); 60 FX_INT32 GetTypeDescent(FX_INT32 nFontIndex); 62 FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex);
|
D | fpdf_vt.h | 191 … CPVT_WordProps() : nFontIndex(-1), fFontSize(0.0f), dwWordColor(0), nScriptType(0), nWordStyle(0), in CPVT_WordProps() 198 nFontIndex(fontIndex), fFontSize(fontSize), dwWordColor(wordColor), nScriptType(scriptType), in nFontIndex() function 204 nFontIndex(other.nFontIndex), fFontSize(other.fFontSize), dwWordColor(other.dwWordColor), in CPVT_WordProps() 210 FX_INT32 nFontIndex; member 245 FX_INT32 nFontIndex; member 284 virtual FX_INT32 GetCharWidth(FX_INT32 nFontIndex, FX_WORD word, FX_INT32 nWordStyle) = 0; 286 virtual FX_INT32 GetTypeAscent(FX_INT32 nFontIndex) = 0; 288 virtual FX_INT32 GetTypeDescent(FX_INT32 nFontIndex) = 0; 290 virtual FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex) = 0;
|
/external/pdfium/fpdfsdk/include/pdfwindow/ |
D | PWL_FontMap.h | 68 virtual CPDF_Font* GetPDFFont(FX_INT32 nFontIndex); 69 virtual CFX_ByteString GetPDFFontAlias(FX_INT32 nFontIndex); 70 virtual FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 nCharset, FX_INT32 nFontIndex); 71 virtual FX_INT32 CharCodeFromUnicode(FX_INT32 nFontIndex, FX_WORD word); 96 FX_BOOL KnowWord(FX_INT32 nFontIndex, FX_WORD word); 109 CFX_ByteString GetFontName(FX_INT32 nFontIndex);
|
/external/pdfium/core/src/fpdfdoc/ |
D | doc_ap.cpp | 45 CPDF_Font* GetPDFFont(FX_INT32 nFontIndex); 46 CFX_ByteString GetPDFFontAlias(FX_INT32 nFontIndex); 87 CPDF_Font* CPVT_FontMap::GetPDFFont(FX_INT32 nFontIndex) in GetPDFFont() argument 89 switch (nFontIndex) { in GetPDFFont() 100 CFX_ByteString CPVT_FontMap::GetPDFFontAlias(FX_INT32 nFontIndex) in GetPDFFontAlias() argument 102 switch (nFontIndex) { in GetPDFFontAlias() 120 FX_INT32 CPVT_Provider::GetCharWidth(FX_INT32 nFontIndex, FX_WORD word, FX_INT32 nWordStyle) in GetCharWidth() argument 122 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { in GetCharWidth() 130 FX_INT32 CPVT_Provider::GetTypeAscent(FX_INT32 nFontIndex) in GetTypeAscent() argument 132 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { in GetTypeAscent() [all …]
|
D | pdf_vt.h | 141 fWordX(0.0f), fWordY(0.0f), fWordTail(0.0f), nFontIndex(-1), pWordProps(NULL) in CPVT_WordInfo() 146 nFontIndex(fontIndex), pWordProps(pProps) in CPVT_WordInfo() 156 fWordX(0.0f), fWordY(0.0f), fWordTail(0.0f), nFontIndex(-1), pWordProps(NULL) in CPVT_WordInfo() 167 this->nFontIndex = word.nFontIndex; 181 FX_INT32 nFontIndex; member 541 …FX_INT32 GetCharWidth(FX_INT32 nFontIndex, FX_WORD Word, FX_WORD SubWord, FX_INT32 nWordSty… 542 FX_INT32 GetTypeAscent(FX_INT32 nFontIndex); 543 FX_INT32 GetTypeDescent(FX_INT32 nFontIndex); 544 FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex); 557 FX_FLOAT GetWordWidth(FX_INT32 nFontIndex, FX_WORD Word, FX_WORD SubWord, [all …]
|
D | doc_vt.cpp | 624 fWordWidth = m_pVT->GetWordWidth(pWord->nFontIndex, in SplitLines() 871 pNewProps->nFontIndex = GetWordFontIndex(word, charset, pWordProps->nFontIndex); in InsertWord() 874 …FX_INT32 nFontIndex = GetSubWord() > 0 ? GetDefaultFontIndex() : GetWordFontIndex(word, charset, G… in InsertWord() local 875 return AddWord(newplace, CPVT_WordInfo(word, charset, nFontIndex, NULL)); in InsertWord() 1360 … return m_bRichText && WordInfo.pWordProps ? WordInfo.pWordProps->nFontIndex : WordInfo.nFontIndex; in GetWordFontIndex() 1362 FX_FLOAT CPDF_VariableText::GetWordWidth(FX_INT32 nFontIndex, FX_WORD Word, FX_WORD SubWord, in GetWordWidth() argument 1366 …return (GetCharWidth(nFontIndex, Word, SubWord, nWordStyle) * fFontSize * PVT_FONTSCALE + fCharSpa… in GetWordWidth() 1376 …return m_bRichText && SecInfo.pWordProps ? GetFontAscent(SecInfo.pWordProps->nFontIndex, SecInfo.p… in GetLineAscent() 1381 …return m_bRichText && SecInfo.pWordProps ? GetFontDescent(SecInfo.pWordProps->nFontIndex, SecInfo.… in GetLineDescent() 1384 FX_FLOAT CPDF_VariableText::GetFontAscent(FX_INT32 nFontIndex, FX_FLOAT fFontSize) in GetFontAscent() argument [all …]
|
/external/pdfium/fpdfsdk/include/fxedit/ |
D | fx_edit.h | 68 virtual CPDF_Font * GetPDFFont(FX_INT32 nFontIndex) = 0; 70 virtual CFX_ByteString GetPDFFontAlias(FX_INT32 nFontIndex) = 0; 72 virtual FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex) = 0; 74 virtual FX_INT32 CharCodeFromUnicode(FX_INT32 nFontIndex, FX_WORD word) = 0; 238 virtual FX_BOOL SetRichFontIndex(FX_INT32 nFontIndex) = 0;
|
D | fxet_edit.h | 599 FX_BOOL SetRichFontIndex(FX_INT32 nFontIndex); 806 FX_INT32 GetCharWidth(FX_INT32 nFontIndex, FX_WORD word, FX_INT32 nWordStyle); 807 FX_INT32 GetTypeAscent(FX_INT32 nFontIndex); 808 FX_INT32 GetTypeDescent(FX_INT32 nFontIndex); 809 FX_INT32 GetWordFontIndex(FX_WORD word, FX_INT32 charset, FX_INT32 nFontIndex);
|