OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* autohint.h */ | 3 /* autohint.h */ |
4 /* */ | 4 /* */ |
5 /* High-level `autohint' module-specific interface (specification). */ | 5 /* High-level `autohint' module-specific interface (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 1996-2001, 2002, 2007 by */ | 7 /* Copyright 1996-2001, 2002, 2007 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, */ |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 #ifndef FT_CONFIG_OPTION_PIC | 199 #ifndef FT_CONFIG_OPTION_PIC |
200 | 200 |
201 #define FT_DEFINE_AUTOHINTER_SERVICE(class_, reset_face_, get_global_hints_, \ | 201 #define FT_DEFINE_AUTOHINTER_SERVICE(class_, reset_face_, get_global_hints_, \ |
202 done_global_hints_, load_glyph_) \ | 202 done_global_hints_, load_glyph_) \ |
203 FT_CALLBACK_TABLE_DEF \ | 203 FT_CALLBACK_TABLE_DEF \ |
204 const FT_AutoHinter_ServiceRec class_ = \ | 204 const FT_AutoHinter_ServiceRec class_ = \ |
205 { \ | 205 { \ |
206 reset_face_, get_global_hints_, done_global_hints_, load_glyph_ \ | 206 reset_face_, get_global_hints_, done_global_hints_, load_glyph_ \ |
207 }; | 207 }; |
208 | 208 |
209 #else /* FT_CONFIG_OPTION_PIC */ | 209 #else /* FT_CONFIG_OPTION_PIC */ |
210 | 210 |
211 #define FT_DEFINE_AUTOHINTER_SERVICE(class_, reset_face_, get_global_hints_, \ | 211 #define FT_DEFINE_AUTOHINTER_SERVICE(class_, reset_face_, get_global_hints_, \ |
212 done_global_hints_, load_glyph_) \ | 212 done_global_hints_, load_glyph_) \ |
213 void \ | 213 void \ |
214 FT_Init_Class_##class_( FT_Library library, \ | 214 FT_Init_Class_##class_( FT_Library library, \ |
215 FT_AutoHinter_ServiceRec* clazz) \ | 215 FT_AutoHinter_ServiceRec* clazz) \ |
216 { \ | 216 { \ |
217 FT_UNUSED(library); \ | 217 FT_UNUSED(library); \ |
218 clazz->reset_face = reset_face_; \ | 218 clazz->reset_face = reset_face_; \ |
219 clazz->get_global_hints = get_global_hints_; \ | 219 clazz->get_global_hints = get_global_hints_; \ |
220 clazz->done_global_hints = done_global_hints_; \ | 220 clazz->done_global_hints = done_global_hints_; \ |
221 clazz->load_glyph = load_glyph_; \ | 221 clazz->load_glyph = load_glyph_; \ |
222 } | 222 } |
223 | 223 |
224 #endif /* FT_CONFIG_OPTION_PIC */ | 224 #endif /* FT_CONFIG_OPTION_PIC */ |
225 | 225 |
226 FT_END_HEADER | 226 FT_END_HEADER |
227 | 227 |
228 #endif /* __AUTOHINT_H__ */ | 228 #endif /* __AUTOHINT_H__ */ |
229 | 229 |
230 | 230 |
231 /* END */ | 231 /* END */ |
OLD | NEW |