Home
last modified time | relevance | path

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

/external/pdfium/core/fpdfdoc/
Dcpdf_bafontmap.cpp98 RetainPtr<CPDF_Font> CPDF_BAFontMap::GetPDFFont(int32_t nFontIndex) { in GetPDFFont() argument
99 if (fxcrt::IndexInBounds(m_Data, nFontIndex)) in GetPDFFont()
100 return m_Data[nFontIndex]->pFont; in GetPDFFont()
104 ByteString CPDF_BAFontMap::GetPDFFontAlias(int32_t nFontIndex) { in GetPDFFontAlias() argument
105 if (fxcrt::IndexInBounds(m_Data, nFontIndex)) in GetPDFFontAlias()
106 return m_Data[nFontIndex]->sFontName; in GetPDFFontAlias()
112 int32_t nFontIndex) { in GetWordFontIndex() argument
113 if (nFontIndex > 0) { in GetWordFontIndex()
114 if (KnowWord(nFontIndex, word)) in GetWordFontIndex()
115 return nFontIndex; in GetWordFontIndex()
[all …]
Dcpvt_fontmap.cpp51 RetainPtr<CPDF_Font> CPVT_FontMap::GetPDFFont(int32_t nFontIndex) { in GetPDFFont() argument
52 switch (nFontIndex) { in GetPDFFont()
64 ByteString CPVT_FontMap::GetPDFFontAlias(int32_t nFontIndex) { in GetPDFFontAlias() argument
65 switch (nFontIndex) { in GetPDFFontAlias()
79 int32_t nFontIndex) { in GetWordFontIndex() argument
84 int32_t CPVT_FontMap::CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) { in CharCodeFromUnicode() argument
Dcpvt_wordinfo.cpp17 nFontIndex(-1) {} in CPVT_WordInfo()
27 nFontIndex(fontIndex) {} in CPVT_WordInfo()
35 nFontIndex(-1) { in CPVT_WordInfo()
47 nFontIndex = word.nFontIndex; in operator =()
Dcpvt_variabletext.h55 virtual int GetCharWidth(int32_t nFontIndex, uint16_t word);
56 virtual int32_t GetTypeAscent(int32_t nFontIndex);
57 virtual int32_t GetTypeDescent(int32_t nFontIndex);
60 int32_t nFontIndex);
141 float GetFontAscent(int32_t nFontIndex, float fFontSize) const;
142 float GetFontDescent(int32_t nFontIndex, float fFontSize) const;
146 float GetWordWidth(int32_t nFontIndex,
160 int GetCharWidth(int32_t nFontIndex, uint16_t Word, uint16_t SubWord) const;
163 int32_t nFontIndex);
Dipvt_fontmap.h22 virtual RetainPtr<CPDF_Font> GetPDFFont(int32_t nFontIndex) = 0;
23 virtual ByteString GetPDFFontAlias(int32_t nFontIndex) = 0;
26 int32_t nFontIndex) = 0;
27 virtual int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) = 0;
Dcpvt_variabletext.cpp41 int CPVT_VariableText::Provider::GetCharWidth(int32_t nFontIndex, in GetCharWidth() argument
43 RetainPtr<CPDF_Font> pPDFFont = m_pFontMap->GetPDFFont(nFontIndex); in GetCharWidth()
54 int32_t CPVT_VariableText::Provider::GetTypeAscent(int32_t nFontIndex) { in GetTypeAscent() argument
55 RetainPtr<CPDF_Font> pPDFFont = m_pFontMap->GetPDFFont(nFontIndex); in GetTypeAscent()
59 int32_t CPVT_VariableText::Provider::GetTypeDescent(int32_t nFontIndex) { in GetTypeDescent() argument
60 RetainPtr<CPDF_Font> pPDFFont = m_pFontMap->GetPDFFont(nFontIndex); in GetTypeDescent()
66 int32_t nFontIndex) { in GetWordFontIndex() argument
142 word.nFontIndex = pInfo->nFontIndex; in GetWord()
204 int32_t nFontIndex = in InsertWord() local
207 return AddWord(newplace, CPVT_WordInfo(word, charset, nFontIndex)); in InsertWord()
[all …]
Dcpvt_fontmap.h30 RetainPtr<CPDF_Font> GetPDFFont(int32_t nFontIndex) override;
31 ByteString GetPDFFontAlias(int32_t nFontIndex) override;
34 int32_t nFontIndex) override;
35 int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) override;
Dcpdf_bafontmap.h31 RetainPtr<CPDF_Font> GetPDFFont(int32_t nFontIndex) override;
32 ByteString GetPDFFontAlias(int32_t nFontIndex) override;
35 int32_t nFontIndex) override;
36 int32_t CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) override;
63 bool KnowWord(int32_t nFontIndex, uint16_t word);
Dcpvt_word.h26 int32_t nFontIndex; variable
36 nFontIndex(-1), in CPVT_Word()
Dcpvt_wordinfo.h27 int32_t nFontIndex; member
Dcpdf_generateap.cpp54 int32_t nFontIndex, in GetPDFWordString() argument
63 RetainPtr<CPDF_Font> pPDFFont = pFontMap->GetPDFFont(nFontIndex); in GetPDFWordString()
87 int32_t nFontIndex, in GetFontSetString() argument
91 ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); in GetFontSetString()
139 if (word.nFontIndex != nCurFontIndex) { in GenerateEditAP()
144 sLineStream << GetFontSetString(pFontMap, word.nFontIndex, in GenerateEditAP()
146 nCurFontIndex = word.nFontIndex; in GenerateEditAP()
161 if (word.nFontIndex != nCurFontIndex) { in GenerateEditAP()
162 sEditStream << GetFontSetString(pFontMap, word.nFontIndex, in GenerateEditAP()
164 nCurFontIndex = word.nFontIndex; in GenerateEditAP()
Dcpvt_section.cpp576 fWordWidth = m_pVT->GetWordWidth(pWord->nFontIndex, pWord->Word, in SplitLines()
/external/pdfium/fpdfsdk/pwl/
Dcpwl_edit_impl.cpp102 int GetCharWidth(int32_t nFontIndex, uint16_t word) override;
105 int32_t nFontIndex) override;
113 int CPWL_EditImpl::Provider::GetCharWidth(int32_t nFontIndex, uint16_t word) { in GetCharWidth() argument
114 RetainPtr<CPDF_Font> pPDFFont = GetFontMap()->GetPDFFont(nFontIndex); in GetCharWidth()
120 : GetFontMap()->CharCodeFromUnicode(nFontIndex, word); in GetCharWidth()
129 int32_t nFontIndex) { in GetWordFontIndex() argument
130 return GetFontMap()->GetWordFontIndex(word, charset, nFontIndex); in GetWordFontIndex()
597 int32_t nFontIndex = -1; in DrawEdit() local
650 if (place.LineCmp(oldplace) != 0 || word.nFontIndex != nFontIndex || in DrawEdit()
655 pFontMap->GetPDFFont(nFontIndex).Get(), fFontSize, in DrawEdit()
[all …]
Dcpwl_edit_impl.h134 ByteString GetPDFWordString(int32_t nFontIndex,
/external/pdfium/fpdfsdk/
Dcpdfsdk_appstream.cpp594 int32_t nFontIndex, in GetFontSetString() argument
599 ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); in GetFontSetString()
659 if (word.nFontIndex != nCurFontIndex) { in GetEditAppStream()
664 sEditStream << GetFontSetString(pEdit->GetFontMap(), word.nFontIndex, in GetEditAppStream()
666 nCurFontIndex = word.nFontIndex; in GetEditAppStream()
683 if (word.nFontIndex != nCurFontIndex) { in GetEditAppStream()
684 sEditStream << GetFontSetString(pEdit->GetFontMap(), word.nFontIndex, in GetEditAppStream()
686 nCurFontIndex = word.nFontIndex; in GetEditAppStream()