Lines Matching refs:sFontName
71 return m_Data[nFontIndex]->sFontName; in GetPDFFontAlias()
128 return pData->sFontName; in GetNativeFontName()
137 pNewData->sFontName = sNew; in GetNativeFontName()
151 bool CPWL_FontMap::IsStandardFont(const ByteString& sFontName) { in IsStandardFont() argument
153 if (sFontName == name) in IsStandardFont()
160 int32_t CPWL_FontMap::FindFont(const ByteString& sFontName, int32_t nCharset) { in FindFont() argument
165 (sFontName.IsEmpty() || pData->sFontName == sFontName)) { in FindFont()
173 int32_t CPWL_FontMap::GetFontIndex(const ByteString& sFontName, in GetFontIndex() argument
176 int32_t nFontIndex = FindFont(EncodeFontAlias(sFontName, nCharset), nCharset); in GetFontIndex()
183 ByteString sTemp = sFontName; in GetFontIndex()
201 pNewData->sFontName = sFontAlias; in AddFontData()
213 ByteString sFontName = GetDefaultFontByCharset(nCharset); in GetNativeFont() local
214 if (!m_pSystemHandler->FindNativeTrueTypeFont(sFontName)) in GetNativeFont()
217 return sFontName; in GetNativeFont()
221 ByteString& sFontName, in AddFontToDocument() argument
223 if (IsStandardFont(sFontName)) in AddFontToDocument()
224 return AddStandardFont(pDoc, sFontName); in AddFontToDocument()
226 return AddSystemFont(pDoc, sFontName, nCharset); in AddFontToDocument()
230 ByteString& sFontName) { in AddStandardFont() argument
236 if (sFontName == "ZapfDingbats") { in AddStandardFont()
237 pFont = pDoc->AddStandardFont(sFontName.c_str(), nullptr); in AddStandardFont()
240 pFont = pDoc->AddStandardFont(sFontName.c_str(), &fe); in AddStandardFont()
247 ByteString& sFontName, in AddSystemFont() argument
252 if (sFontName.IsEmpty()) in AddSystemFont()
253 sFontName = GetNativeFont(nCharset); in AddSystemFont()
257 return m_pSystemHandler->AddNativeTrueTypeFontToPDF(pDoc, sFontName, in AddSystemFont()
261 ByteString CPWL_FontMap::EncodeFontAlias(const ByteString& sFontName, in EncodeFontAlias() argument
263 return EncodeFontAlias(sFontName) + ByteString::Format("_%02X", nCharset); in EncodeFontAlias()
266 ByteString CPWL_FontMap::EncodeFontAlias(const ByteString& sFontName) { in EncodeFontAlias() argument
267 ByteString sRet = sFontName; in EncodeFontAlias()