25 FT_BEGIN_HEADER
26
27
28 /*
29 * A service used to retrieve glyph names, as well as to find the index of
30 * a given glyph name in a font.
31 *
32 */
33
34 #define FT_SERVICE_ID_GLYPH_DICT "glyph-dict"
35
36
37 typedef FT_Error
38 (*FT_GlyphDict_GetNameFunc)( FT_Face face,
39 FT_UInt glyph_index,
40 FT_Pointer buffer,
41 FT_UInt buffer_max );
42
43 typedef FT_UInt
44 (*FT_GlyphDict_NameIndexFunc)( FT_Face face,
45 FT_String* glyph_name );
46
47
48 FT_DEFINE_SERVICE( GlyphDict )
49 {
50 FT_GlyphDict_GetNameFunc get_name;
51 FT_GlyphDict_NameIndexFunc name_index; /* optional */
52 };
53
54
55 #define FT_DEFINE_SERVICE_GLYPHDICTREC( class_, \
56 get_name_, \
57 name_index_ ) \
58 static const FT_Service_GlyphDictRec class_ = \
59 { \
60 get_name_, name_index_ \
61 };
62
63 /* */
64
65
|
25 FT_BEGIN_HEADER
26
27
28 /*
29 * A service used to retrieve glyph names, as well as to find the index of
30 * a given glyph name in a font.
31 *
32 */
33
34 #define FT_SERVICE_ID_GLYPH_DICT "glyph-dict"
35
36
37 typedef FT_Error
38 (*FT_GlyphDict_GetNameFunc)( FT_Face face,
39 FT_UInt glyph_index,
40 FT_Pointer buffer,
41 FT_UInt buffer_max );
42
43 typedef FT_UInt
44 (*FT_GlyphDict_NameIndexFunc)( FT_Face face,
45 const FT_String* glyph_name );
46
47
48 FT_DEFINE_SERVICE( GlyphDict )
49 {
50 FT_GlyphDict_GetNameFunc get_name;
51 FT_GlyphDict_NameIndexFunc name_index; /* optional */
52 };
53
54
55 #define FT_DEFINE_SERVICE_GLYPHDICTREC( class_, \
56 get_name_, \
57 name_index_ ) \
58 static const FT_Service_GlyphDictRec class_ = \
59 { \
60 get_name_, name_index_ \
61 };
62
63 /* */
64
65
|