21 #include FT_INTERNAL_DEBUG_H 39 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->
psnames;
44 cmap->sid_to_string = psnames->adobe_std_strings;
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding
46 : psnames->adobe_std_encoding;
56 cmap->glyph_names =
NULL;
57 cmap->sid_to_string =
NULL;
58 cmap->code_to_sid =
NULL;
69 if ( char_code < 256 )
72 const char* glyph_name;
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];
85 if ( gname && gname[0] == glyph_name[0] &&
106 while ( char_code < 256 )
117 *pchar_code = char_code;
125 t1_cmap_std_init( cmap, 0 );
147 t1_cmap_std_init( cmap, 1 );
181 cmap->first = encoding->code_first;
182 cmap->count = (
FT_UInt)( encoding->code_last - cmap->first );
183 cmap->indices = encoding->char_index;
186 FT_ASSERT( encoding->code_first <= encoding->code_last );
195 cmap->indices =
NULL;
208 if ( ( char_code >= cmap->first ) &&
209 ( char_code < ( cmap->first + cmap->count ) ) )
210 result = cmap->indices[char_code];
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];
239 *pchar_code = char_code;
279 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->
psnames;
282 return psnames->unicodes_init( memory,
299 unicodes->num_maps = 0;
308 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->
psnames;
311 return psnames->unicodes_char_index( unicodes, char_code );
320 FT_Service_PsCMaps psnames = (FT_Service_PsCMaps)face->
psnames;
323 return psnames->unicodes_char_next( unicodes, pchar_code );
typedefFT_BEGIN_HEADER struct T1_CMapStdRec_ * T1_CMapStd
struct T1_FaceRec_ * T1_Face
t1_cmap_custom_char_next(T1_CMapCustom cmap, FT_UInt32 *pchar_code)
FT_UInt(* FT_CMap_CharIndexFunc)(FT_CMap cmap, FT_UInt32 char_code)
t1_cmap_expert_init(T1_CMapStd cmap)
void(* FT_CMap_DoneFunc)(FT_CMap cmap)
t1_cmap_std_char_next(T1_CMapStd cmap, FT_UInt32 *pchar_code)
FT_BEGIN_HEADER struct T1_EncodingRecRec_ * T1_Encoding
t1_cmap_std_char_index(T1_CMapStd cmap, FT_UInt32 char_code)
psaux_get_glyph_name(T1_Face face, FT_UInt idx)
struct PS_UnicodesRec_ PS_UnicodesRec
GLenum GLuint GLint GLenum face
#define FT_ASSERT(condition)
t1_cmap_custom_char_index(T1_CMapCustom cmap, FT_UInt32 char_code)
t1_cmap_unicode_done(PS_Unicodes unicodes)
t1_cmap_standard_init(T1_CMapStd cmap)
struct T1_CMapCustomRec_ T1_CMapCustomRec
t1_cmap_unicode_char_next(PS_Unicodes unicodes, FT_UInt32 *pchar_code)
t1_cmap_unicode_init(PS_Unicodes unicodes)
const char *(* PS_GetGlyphNameFunc)(FT_Pointer data, FT_UInt string_index)
void(* PS_FreeGlyphNameFunc)(FT_Pointer data, const char *name)
#define FT_CALLBACK_DEF(x)
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_standard_class_rec
t1_cmap_unicode_char_index(PS_Unicodes unicodes, FT_UInt32 char_code)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_unicode_class_rec
#define FT_CALLBACK_TABLE_DEF
#define FT_FACE_MEMORY(x)
t1_cmap_custom_done(T1_CMapCustom cmap)
struct T1_CMapStdRec_ T1_CMapStdRec
t1_cmap_custom_init(T1_CMapCustom cmap)
FT_UInt(* FT_CMap_CharNextFunc)(FT_CMap cmap, FT_UInt32 *achar_code)
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_custom_class_rec
t1_cmap_std_done(T1_CMapStd cmap)
FT_Error(* FT_CMap_InitFunc)(FT_CMap cmap, FT_Pointer init_data)
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_expert_class_rec