Lines Matching refs:cmap
35 t1_cmap_std_init( T1_CMapStd cmap,
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap );
42 cmap->num_glyphs = face->type1.num_glyphs;
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names;
44 cmap->sid_to_string = psnames->adobe_std_strings;
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding
48 FT_ASSERT( cmap->code_to_sid != NULL );
53 t1_cmap_std_done( T1_CMapStd cmap )
55 cmap->num_glyphs = 0;
56 cmap->glyph_names = NULL;
57 cmap->sid_to_string = NULL;
58 cmap->code_to_sid = NULL;
63 t1_cmap_std_char_index( T1_CMapStd cmap,
76 code = cmap->code_to_sid[char_code];
77 glyph_name = cmap->sid_to_string( code );
80 for ( n = 0; n < cmap->num_glyphs; n++ )
82 const char* gname = cmap->glyph_names[n];
99 t1_cmap_std_char_next( T1_CMapStd cmap,
108 result = t1_cmap_std_char_index( cmap, char_code );
123 t1_cmap_standard_init( T1_CMapStd cmap )
125 t1_cmap_std_init( cmap, 0 );
145 t1_cmap_expert_init( T1_CMapStd cmap )
147 t1_cmap_std_init( cmap, 1 );
168 /***** TYPE1 CUSTOM ENCODING CMAP *****/
175 t1_cmap_custom_init( T1_CMapCustom cmap )
177 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap );
181 cmap->first = encoding->code_first;
182 cmap->count = (FT_UInt)( encoding->code_last - cmap->first );
183 cmap->indices = encoding->char_index;
185 FT_ASSERT( cmap->indices != NULL );
193 t1_cmap_custom_done( T1_CMapCustom cmap )
195 cmap->indices = NULL;
196 cmap->first = 0;
197 cmap->count = 0;
202 t1_cmap_custom_char_index( T1_CMapCustom cmap,
208 if ( ( char_code >= cmap->first ) &&
209 ( char_code < ( cmap->first + cmap->count ) ) )
210 result = cmap->indices[char_code];
217 t1_cmap_custom_char_next( T1_CMapCustom cmap,
226 if ( char_code < cmap->first )
227 char_code = cmap->first;
229 for ( ; char_code < ( cmap->first + cmap->count ); char_code++ )
231 result = cmap->indices[char_code];
261 /***** TYPE1 SYNTHETIC UNICODE ENCODING CMAP *****/