OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* afmodule.h */ | 3 /* afmodule.h */ |
4 /* */ | 4 /* */ |
5 /* Auto-fitter module implementation (specification). */ | 5 /* Auto-fitter module implementation (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2003, 2004, 2005 by */ | 7 /* Copyright 2003, 2004, 2005 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 |
18 | 18 |
19 #ifndef __AFMODULE_H__ | 19 #ifndef __AFMODULE_H__ |
20 #define __AFMODULE_H__ | 20 #define __AFMODULE_H__ |
21 | 21 |
22 #include <ft2build.h> | 22 #include <ft2build.h> |
23 #include FT_INTERNAL_OBJECTS_H | 23 #include FT_INTERNAL_OBJECTS_H |
24 #include FT_MODULE_H | 24 #include FT_MODULE_H |
25 | 25 |
| 26 #include "afloader.h" |
| 27 |
26 | 28 |
27 FT_BEGIN_HEADER | 29 FT_BEGIN_HEADER |
28 | 30 |
| 31 |
| 32 /* |
| 33 * This is the `extended' FT_Module structure which holds the |
| 34 * autofitter's global data. Right before hinting a glyph, the data |
| 35 * specific to the glyph's face (blue zones, stem widths, etc.) are |
| 36 * loaded into `loader' (see function `af_loader_reset'). |
| 37 */ |
| 38 |
| 39 typedef struct AF_ModuleRec_ |
| 40 { |
| 41 FT_ModuleRec root; |
| 42 |
| 43 FT_UInt fallback_script; |
| 44 |
| 45 AF_LoaderRec loader[1]; |
| 46 |
| 47 } AF_ModuleRec; |
| 48 |
| 49 |
29 FT_DECLARE_MODULE(autofit_module_class) | 50 FT_DECLARE_MODULE(autofit_module_class) |
30 | 51 |
31 | 52 |
32 FT_END_HEADER | 53 FT_END_HEADER |
33 | 54 |
34 #endif /* __AFMODULE_H__ */ | 55 #endif /* __AFMODULE_H__ */ |
35 | 56 |
36 | 57 |
37 /* END */ | 58 /* END */ |
OLD | NEW |