OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* svpostnm.h */ | 3 /* svpostnm.h */ |
4 /* */ | 4 /* */ |
5 /* The FreeType PostScript name services (specification). */ | 5 /* The FreeType PostScript name services (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2003, 2007 by */ | 7 /* Copyright 2003, 2007, 2009, 2012 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 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 */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
15 /* */ | 15 /* */ |
16 /***************************************************************************/ | 16 /***************************************************************************/ |
17 | 17 |
(...skipping 21 matching lines...) Expand all Loading... |
39 | 39 |
40 typedef const char* | 40 typedef const char* |
41 (*FT_PsName_GetFunc)( FT_Face face ); | 41 (*FT_PsName_GetFunc)( FT_Face face ); |
42 | 42 |
43 | 43 |
44 FT_DEFINE_SERVICE( PsFontName ) | 44 FT_DEFINE_SERVICE( PsFontName ) |
45 { | 45 { |
46 FT_PsName_GetFunc get_ps_font_name; | 46 FT_PsName_GetFunc get_ps_font_name; |
47 }; | 47 }; |
48 | 48 |
| 49 |
49 #ifndef FT_CONFIG_OPTION_PIC | 50 #ifndef FT_CONFIG_OPTION_PIC |
50 | 51 |
51 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ | 52 #define FT_DEFINE_SERVICE_PSFONTNAMEREC( class_, get_ps_font_name_ ) \ |
52 static const FT_Service_PsFontNameRec class_ = \ | 53 static const FT_Service_PsFontNameRec class_ = \ |
53 { \ | 54 { \ |
54 get_ps_font_name_ \ | 55 get_ps_font_name_ \ |
55 }; | 56 }; |
56 | 57 |
57 #else /* FT_CONFIG_OPTION_PIC */ | 58 #else /* FT_CONFIG_OPTION_PIC */ |
58 | 59 |
59 #define FT_DEFINE_SERVICE_PSFONTNAMEREC(class_, get_ps_font_name_) \ | 60 #define FT_DEFINE_SERVICE_PSFONTNAMEREC( class_, get_ps_font_name_ ) \ |
60 void \ | 61 void \ |
61 FT_Init_Class_##class_( FT_Library library, \ | 62 FT_Init_Class_ ## class_( FT_Library library, \ |
62 FT_Service_PsFontNameRec* clazz) \ | 63 FT_Service_PsFontNameRec* clazz ) \ |
63 { \ | 64 { \ |
64 FT_UNUSED(library); \ | 65 FT_UNUSED( library ); \ |
65 clazz->get_ps_font_name = get_ps_font_name_; \ | 66 \ |
66 } | 67 clazz->get_ps_font_name = get_ps_font_name_; \ |
| 68 } |
67 | 69 |
68 #endif /* FT_CONFIG_OPTION_PIC */ | 70 #endif /* FT_CONFIG_OPTION_PIC */ |
69 | 71 |
70 /* */ | 72 /* */ |
71 | 73 |
72 | 74 |
73 FT_END_HEADER | 75 FT_END_HEADER |
74 | 76 |
75 | 77 |
76 #endif /* __SVPOSTNM_H__ */ | 78 #endif /* __SVPOSTNM_H__ */ |
77 | 79 |
78 | 80 |
79 /* END */ | 81 /* END */ |
OLD | NEW |