Home
last modified time | relevance | path

Searched refs:nFontIndex (Results 1 – 13 of 13) sorted by relevance

/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_FontMap.cpp60 CPDF_Font* CPWL_FontMap::GetPDFFont(int32_t nFontIndex) { in GetPDFFont() argument
61 if (nFontIndex >= 0 && nFontIndex < m_aData.GetSize()) { in GetPDFFont()
62 if (CPWL_FontMap_Data* pData = m_aData.GetAt(nFontIndex)) { in GetPDFFont()
70 CFX_ByteString CPWL_FontMap::GetPDFFontAlias(int32_t nFontIndex) { in GetPDFFontAlias() argument
71 if (nFontIndex >= 0 && nFontIndex < m_aData.GetSize()) { in GetPDFFontAlias()
72 if (CPWL_FontMap_Data* pData = m_aData.GetAt(nFontIndex)) { in GetPDFFontAlias()
80 FX_BOOL CPWL_FontMap::KnowWord(int32_t nFontIndex, FX_WORD word) { in KnowWord() argument
81 if (nFontIndex >= 0 && nFontIndex < m_aData.GetSize()) { in KnowWord()
82 if (m_aData.GetAt(nFontIndex)) { in KnowWord()
83 return CharCodeFromUnicode(nFontIndex, word) >= 0; in KnowWord()
[all …]
DPWL_EditCtrl.cpp449 int32_t nFontIndex = 0; in GetCaretFont() local
456 nFontIndex = word.nFontIndex; in GetCaretFont()
459 nFontIndex = section.WordProps.nFontIndex; in GetCaretFont()
465 return pFontMap->GetPDFFont(nFontIndex); in GetCaretFont()
/external/pdfium/fpdfsdk/src/fxedit/
Dfxet_ap.cpp12 int32_t nFontIndex, in GetPDFWordString() argument
16 if (CPDF_Font* pPDFFont = pFontMap->GetPDFFont(nFontIndex)) { in GetPDFWordString()
25 dwCharCode = pFontMap->CharCodeFromUnicode(nFontIndex, Word); in GetPDFWordString()
47 int32_t nFontIndex, in GetFontSetString() argument
52 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); in GetFontSetString()
114 if (word.nFontIndex != nCurFontIndex) { in GetEditAppearanceStream()
120 word.nFontIndex, word.fFontSize); in GetEditAppearanceStream()
121 nCurFontIndex = word.nFontIndex; in GetEditAppearanceStream()
141 if (word.nFontIndex != nCurFontIndex) { in GetEditAppearanceStream()
143 word.nFontIndex, word.fFontSize); in GetEditAppearanceStream()
[all …]
Dfxet_pageobjs.cpp171 int32_t nFontIndex = -1; in DrawEdit() local
239 if (place.LineCmp(oldplace) != 0 || word.nFontIndex != nFontIndex || in DrawEdit()
244 pFontMap->GetPDFFont(nFontIndex), fFontSize, in DrawEdit()
250 nFontIndex = word.nFontIndex; in DrawEdit()
255 sTextBuf << GetPDFWordString(pFontMap, word.nFontIndex, word.Word, in DrawEdit()
261 pFontMap->GetPDFFont(word.nFontIndex), fFontSize, pUser2Device, in DrawEdit()
262 GetPDFWordString(pFontMap, word.nFontIndex, word.Word, SubWord), in DrawEdit()
272 pFontMap->GetPDFFont(nFontIndex), fFontSize, pUser2Device, in DrawEdit()
362 pFontMap->GetPDFFont(wp.nFontIndex), wp.fFontSize, in DrawRichEdit()
373 sTextBuf << GetPDFWordString(pFontMap, word.WordProps.nFontIndex, in DrawRichEdit()
[all …]
Dfxet_edit.cpp102 int32_t CFX_Edit_Provider::GetCharWidth(int32_t nFontIndex, in GetCharWidth() argument
105 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { in GetCharWidth()
111 charcode = m_pFontMap->CharCodeFromUnicode(nFontIndex, word); in GetCharWidth()
120 int32_t CFX_Edit_Provider::GetTypeAscent(int32_t nFontIndex) { in GetTypeAscent() argument
121 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) in GetTypeAscent()
127 int32_t CFX_Edit_Provider::GetTypeDescent(int32_t nFontIndex) { in GetTypeDescent() argument
128 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) in GetTypeDescent()
136 int32_t nFontIndex) { in GetWordFontIndex() argument
137 return m_pFontMap->GetWordFontIndex(word, charset, nFontIndex); in GetWordFontIndex()
1105 FX_BOOL CFX_Edit::SetRichFontIndex(int32_t nFontIndex) { in SetRichFontIndex() argument
[all …]
/external/pdfium/core/include/fpdfdoc/
Dfpdf_ap.h16 virtual CPDF_Font* GetPDFFont(int32_t nFontIndex) = 0;
17 virtual CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) = 0;
57 int32_t GetCharWidth(int32_t nFontIndex,
60 int32_t GetTypeAscent(int32_t nFontIndex) override;
61 int32_t GetTypeDescent(int32_t nFontIndex) override;
64 int32_t nFontIndex) override;
Dfpdf_vt.h166 : nFontIndex(-1), in CPVT_WordProps()
181 : nFontIndex(fontIndex), in nFontIndex() function
190 : nFontIndex(other.nFontIndex), in CPVT_WordProps()
198 int32_t nFontIndex; member
237 int32_t nFontIndex; member
272 virtual int32_t GetCharWidth(int32_t nFontIndex,
276 virtual int32_t GetTypeAscent(int32_t nFontIndex) = 0;
278 virtual int32_t GetTypeDescent(int32_t nFontIndex) = 0;
282 int32_t nFontIndex) = 0;
/external/pdfium/fpdfsdk/include/pdfwindow/
DPWL_FontMap.h57 CPDF_Font* GetPDFFont(int32_t nFontIndex) override;
58 CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) override;
61 int32_t nFontIndex) override;
62 int32_t CharCodeFromUnicode(int32_t nFontIndex, FX_WORD word) override;
89 FX_BOOL KnowWord(int32_t nFontIndex, FX_WORD word);
105 CFX_ByteString GetFontName(int32_t nFontIndex);
/external/pdfium/core/src/fpdfdoc/
Ddoc_ap.cpp52 CPDF_Font* GetPDFFont(int32_t nFontIndex) override;
53 CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) override;
99 CPDF_Font* CPVT_FontMap::GetPDFFont(int32_t nFontIndex) { in GetPDFFont() argument
100 switch (nFontIndex) { in GetPDFFont()
112 CFX_ByteString CPVT_FontMap::GetPDFFontAlias(int32_t nFontIndex) { in GetPDFFontAlias() argument
113 switch (nFontIndex) { in GetPDFFontAlias()
129 int32_t CPVT_Provider::GetCharWidth(int32_t nFontIndex, in GetCharWidth() argument
132 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { in GetCharWidth()
140 int32_t CPVT_Provider::GetTypeAscent(int32_t nFontIndex) { in GetTypeAscent() argument
141 if (CPDF_Font* pPDFFont = m_pFontMap->GetPDFFont(nFontIndex)) { in GetTypeAscent()
[all …]
Dpdf_vt.h123 nFontIndex(-1), in CPVT_WordInfo()
134 nFontIndex(fontIndex), in CPVT_WordInfo()
143 nFontIndex(-1), in CPVT_WordInfo()
153 nFontIndex = word.nFontIndex;
167 int32_t nFontIndex; member
446 int32_t GetCharWidth(int32_t nFontIndex,
450 int32_t GetTypeAscent(int32_t nFontIndex);
451 int32_t GetTypeDescent(int32_t nFontIndex);
452 int32_t GetWordFontIndex(FX_WORD word, int32_t charset, int32_t nFontIndex);
470 FX_FLOAT GetWordWidth(int32_t nFontIndex,
[all …]
Ddoc_vt.cpp613 pWord->nFontIndex, pWord->Word, m_pVT->m_wSubWord, in SplitLines()
855 pNewProps->nFontIndex = in InsertWord()
856 GetWordFontIndex(word, charset, pWordProps->nFontIndex); in InsertWord()
859 int32_t nFontIndex = in InsertWord() local
862 return AddWord(newplace, CPVT_WordInfo(word, charset, nFontIndex, NULL)); in InsertWord()
1349 return m_bRichText && WordInfo.pWordProps ? WordInfo.pWordProps->nFontIndex in GetWordFontIndex()
1350 : WordInfo.nFontIndex; in GetWordFontIndex()
1352 FX_FLOAT CPDF_VariableText::GetWordWidth(int32_t nFontIndex, in GetWordWidth() argument
1360 return (GetCharWidth(nFontIndex, Word, SubWord, nWordStyle) * fFontSize * in GetWordWidth()
1375 ? GetFontAscent(SecInfo.pWordProps->nFontIndex, in GetLineAscent()
[all …]
/external/pdfium/fpdfsdk/include/fxedit/
Dfx_edit.h59 virtual CPDF_Font* GetPDFFont(int32_t nFontIndex) = 0;
61 virtual CFX_ByteString GetPDFFontAlias(int32_t nFontIndex) = 0;
65 int32_t nFontIndex) = 0;
67 virtual int32_t CharCodeFromUnicode(int32_t nFontIndex, FX_WORD word) = 0;
255 virtual FX_BOOL SetRichFontIndex(int32_t nFontIndex) = 0;
572 int32_t nFontIndex,
Dfxet_edit.h556 FX_BOOL SetRichFontIndex(int32_t nFontIndex) override;
801 int32_t GetCharWidth(int32_t nFontIndex,
804 int32_t GetTypeAscent(int32_t nFontIndex) override;
805 int32_t GetTypeDescent(int32_t nFontIndex) override;
808 int32_t nFontIndex) override;