Home | History | Annotate | Download | only in font

Lines Matching full:charcode

75       int charcode = 0;
76 for (; charcode < nStartChar; charcode++) {
77 m_GlyphIndex[charcode] = 0;
79 uint16_t nGlyph = charcode - nStartChar + 3;
80 for (; charcode < 256; charcode++, nGlyph++) {
81 m_GlyphIndex[charcode] = nGlyph;
98 for (int charcode = 0; charcode < 256; charcode++) {
100 GetAdobeCharName(baseEncoding, m_CharNames, charcode);
102 m_GlyphIndex[charcode] =
103 m_pFontFile ? FXFT_Get_Char_Index(m_Font.GetFace(), charcode) : -1;
106 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
109 uint16_t unicode = kPrefix[j] * 256 + charcode;
110 m_GlyphIndex[charcode] =
112 if (m_GlyphIndex[charcode]) {
116 } else if (m_Encoding.m_Unicodes[charcode]) {
118 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(
119 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]);
122 FXFT_ENCODING_APPLE_ROMAN, m_Encoding.m_Unicodes[charcode]);
124 m_GlyphIndex[charcode] =
127 m_GlyphIndex[charcode] =
132 if ((m_GlyphIndex[charcode] == 0 || m_GlyphIndex[charcode] == 0xffff) &&
135 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(m_Font.GetFace(), 32);
137 m_GlyphIndex[charcode] =
139 if (m_GlyphIndex[charcode] == 0) {
141 CFX_WideString wsUnicode = UnicodeFromCharCode(charcode);
143 m_GlyphIndex[charcode] =
145 m_Encoding.m_Unicodes[charcode] = wsUnicode[0];
148 if (m_GlyphIndex[charcode] == 0) {
149 m_GlyphIndex[charcode] =
150 FXFT_Get_Char_Index(m_Font.GetFace(), charcode);
160 for (int charcode = 0; charcode < 256; charcode++) {
162 uint16_t unicode = kPrefix[j] * 256 + charcode;
163 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(m_Font.GetFace(), unicode);
164 if (m_GlyphIndex[charcode]) {
172 for (int charcode = 0; charcode < 256; charcode++) {
174 GetAdobeCharName(baseEncoding, m_CharNames, charcode);
176 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
179 for (int charcode = 0; charcode < 256; charcode++) {
180 m_Encoding.m_Unicodes[charcode] =
181 FT_UnicodeFromCharCode(FXFT_ENCODING_APPLE_ROMAN, charcode);
189 for (int charcode = 0; charcode < 256; charcode++) {
190 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(m_Font.GetFace(), charcode);
191 m_Encoding.m_Unicodes[charcode] =
192 FT_UnicodeFromCharCode(FXFT_ENCODING_APPLE_ROMAN, charcode);
193 if (m_GlyphIndex[charcode]) {
203 for (int charcode = 0; charcode < 256; charcode++) {
205 m_Encoding.m_Unicodes[charcode] = charcode;
207 const FX_CHAR* name = GetAdobeCharName(0, m_CharNames, charcode);
209 m_Encoding.m_Unicodes[charcode] = PDF_UnicodeFromAdobeName(name);
211 m_Encoding.m_Unicodes[charcode] = pUnicodes[charcode];
213 m_GlyphIndex[charcode] = FXFT_Get_Char_Index(
214 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]);
215 if (m_GlyphIndex[charcode])
221 for (int charcode = 0; charcode < 256; charcode++)
222 m_GlyphIndex[charcode] = charcode;