Lines Matching refs:nFontIndex
62 CPDF_Font* CPWL_FontMap::GetPDFFont(int32_t nFontIndex) { in GetPDFFont() argument
63 if (pdfium::IndexInBounds(m_Data, nFontIndex) && m_Data[nFontIndex]) in GetPDFFont()
64 return m_Data[nFontIndex]->pFont; in GetPDFFont()
69 ByteString CPWL_FontMap::GetPDFFontAlias(int32_t nFontIndex) { in GetPDFFontAlias() argument
70 if (pdfium::IndexInBounds(m_Data, nFontIndex) && m_Data[nFontIndex]) in GetPDFFontAlias()
71 return m_Data[nFontIndex]->sFontName; in GetPDFFontAlias()
76 bool CPWL_FontMap::KnowWord(int32_t nFontIndex, uint16_t word) { in KnowWord() argument
77 return pdfium::IndexInBounds(m_Data, nFontIndex) && m_Data[nFontIndex] && in KnowWord()
78 CharCodeFromUnicode(nFontIndex, word) >= 0; in KnowWord()
83 int32_t nFontIndex) { in GetWordFontIndex() argument
84 if (nFontIndex > 0) { in GetWordFontIndex()
85 if (KnowWord(nFontIndex, word)) in GetWordFontIndex()
86 return nFontIndex; in GetWordFontIndex()
111 int32_t CPWL_FontMap::CharCodeFromUnicode(int32_t nFontIndex, uint16_t word) { in CharCodeFromUnicode() argument
112 if (!pdfium::IndexInBounds(m_Data, nFontIndex)) in CharCodeFromUnicode()
115 CPWL_FontMap_Data* pData = m_Data[nFontIndex].get(); in CharCodeFromUnicode()
176 int32_t nFontIndex = FindFont(EncodeFontAlias(sFontName, nCharset), nCharset); in GetFontIndex() local
177 if (nFontIndex >= 0) in GetFontIndex()
178 return nFontIndex; in GetFontIndex()