1 /***************************************************************************/
5 /* The FreeType PostScript info service (specification). */
7 /* Copyright 2003, 2004, 2009 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
16 /***************************************************************************/
19 #ifndef __SVPSINFO_H__
20 #define __SVPSINFO_H__
22 #include FT_INTERNAL_SERVICE_H
23 #include FT_INTERNAL_TYPE1_TYPES_H
29 #define FT_SERVICE_ID_POSTSCRIPT_INFO "postscript-info"
33 (*PS_GetFontInfoFunc
)( FT_Face face
,
34 PS_FontInfoRec
* afont_info
);
37 (*PS_GetFontExtraFunc
)( FT_Face face
,
38 PS_FontExtraRec
* afont_extra
);
41 (*PS_HasGlyphNamesFunc
)( FT_Face face
);
44 (*PS_GetFontPrivateFunc
)( FT_Face face
,
45 PS_PrivateRec
* afont_private
);
48 FT_DEFINE_SERVICE( PsInfo
)
50 PS_GetFontInfoFunc ps_get_font_info
;
51 PS_GetFontExtraFunc ps_get_font_extra
;
52 PS_HasGlyphNamesFunc ps_has_glyph_names
;
53 PS_GetFontPrivateFunc ps_get_font_private
;
56 #ifndef FT_CONFIG_OPTION_PIC
58 #define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_, \
59 ps_get_font_extra_, has_glyph_names_, get_font_private_) \
60 static const FT_Service_PsInfoRec class_ = \
62 get_font_info_, ps_get_font_extra_, has_glyph_names_, \
66 #else /* FT_CONFIG_OPTION_PIC */
68 #define FT_DEFINE_SERVICE_PSINFOREC(class_, get_font_info_, \
69 ps_get_font_extra_, has_glyph_names_, get_font_private_) \
71 FT_Init_Class_##class_( FT_Library library, \
72 FT_Service_PsInfoRec* clazz) \
75 clazz->ps_get_font_info = get_font_info_; \
76 clazz->ps_get_font_extra = ps_get_font_extra_; \
77 clazz->ps_has_glyph_names = has_glyph_names_; \
78 clazz->ps_get_font_private = get_font_private_; \
81 #endif /* FT_CONFIG_OPTION_PIC */
89 #endif /* __SVPSINFO_H__ */