Home | History | Annotate | Download | only in font

Lines Matching full:charcode

103 int CPDF_Type1Font::GlyphFromCharCodeExt(uint32_t charcode) {
104 if (charcode > 0xff) {
107 int index = m_ExtGID[(uint8_t)charcode];
136 for (int charcode = 0; charcode < 256; charcode++) {
139 uint16_t unicode = prefix[j] * 256 + charcode;
140 m_GlyphIndex[charcode] =
143 CalcExtGID(charcode);
145 if (m_GlyphIndex[charcode]) {
163 for (int charcode = 0; charcode < 256; charcode++) {
165 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode);
169 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
170 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(
171 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]);
173 CalcExtGID(charcode);
175 if (m_GlyphIndex[charcode] == 0 && FXSYS_strcmp(name, ".notdef") == 0) {
176 m_Encoding.m_Unicodes[charcode] = 0x20;
177 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(m_Font.GetFace(), 0x20);
179 CalcExtGID(charcode);
193 for (int charcode = 0; charcode < 256; charcode++) {
195 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode);
197 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
198 m_GlyphIndex[charcode] =
200 SetExtGID(name, charcode);
202 m_GlyphIndex[charcode] =
203 FXFT_Get_Char_Index(m_Font.GetFace(), charcode);
205 if (m_GlyphIndex[charcode]) {
207 FT_UnicodeFromCharCode(PDFFONT_ENCODING_STANDARD, charcode);
211 FXFT_Get_Glyph_Name(m_Font.GetFace(), m_GlyphIndex[charcode],
217 m_Encoding.m_Unicodes[charcode] = unicode;
218 SetExtGID(name_glyph, charcode);
227 for (int charcode = 0; charcode < 256; charcode++) {
229 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode);
233 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
239 m_GlyphIndex[charcode] =
241 SetExtGID(name, charcode);
242 if (m_GlyphIndex[charcode] == 0) {
245 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(
247 bUnicode ? m_Encoding.m_Unicodes[charcode] : charcode);
248 CalcExtGID(charcode);
250 m_Encoding.m_Unicodes[charcode] = 0x20;
251 m_GlyphIndex[charcode] =
253 CalcExtGID(charcode);
261 for (int charcode = 0; charcode < 256; charcode++) {
263 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode);
265 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
266 m_GlyphIndex[charcode] =
269 m_GlyphIndex[charcode] =
270 FXFT_Get_Char_Index(m_Font.GetFace(), charcode);
271 if (m_GlyphIndex[charcode]) {
273 FT_UnicodeFromCharCode(PDFFONT_ENCODING_STANDARD, charcode);
277 FXFT_Get_Glyph_Name(m_Font.GetFace(), m_GlyphIndex[charcode],
284 m_Encoding.m_Unicodes[charcode] = unicode;
299 for (int charcode = 0; charcode < 256; charcode++) {
301 GetAdobeCharName(m_BaseEncoding, m_CharNames, charcode);
305 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
306 m_GlyphIndex[charcode] = FXFT_Get_Name_Index(m_Font.GetFace(), (char*)name);
307 if (m_GlyphIndex[charcode] == 0) {
310 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(
312 bUnicode ? m_Encoding.m_Unicodes[charcode] : charcode);
314 m_Encoding.m_Unicodes[charcode] = 0x20;
315 m_GlyphIndex[charcode] = 0xffff;
326 void CPDF_Type1Font::SetExtGID(const FX_CHAR* name, int charcode) {
329 m_ExtGID[charcode] =
335 void CPDF_Type1Font::CalcExtGID(int charcode) {
337 FXFT_Get_Glyph_Name(m_Font.GetFace(), m_GlyphIndex[charcode], name_glyph,
340 SetExtGID(name_glyph, charcode);