OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* pshmod.c */ | 3 /* pshmod.c */ |
4 /* */ | 4 /* */ |
5 /* FreeType PostScript hinter module implementation (body). */ | 5 /* FreeType PostScript hinter module implementation (body). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2001, 2002, 2007 by */ | 7 /* Copyright 2001, 2002, 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 | 87 |
88 /* return Type 2 hints interface */ | 88 /* return Type 2 hints interface */ |
89 FT_CALLBACK_DEF( T2_Hints_Funcs ) | 89 FT_CALLBACK_DEF( T2_Hints_Funcs ) |
90 pshinter_get_t2_funcs( FT_Module module ) | 90 pshinter_get_t2_funcs( FT_Module module ) |
91 { | 91 { |
92 return &((PS_Hinter_Module)module)->t2_funcs; | 92 return &((PS_Hinter_Module)module)->t2_funcs; |
93 } | 93 } |
94 | 94 |
95 | 95 |
96 FT_DEFINE_PSHINTER_INTERFACE(pshinter_interface, | 96 FT_DEFINE_PSHINTER_INTERFACE( |
| 97 pshinter_interface, |
97 pshinter_get_globals_funcs, | 98 pshinter_get_globals_funcs, |
98 pshinter_get_t1_funcs, | 99 pshinter_get_t1_funcs, |
99 pshinter_get_t2_funcs | 100 pshinter_get_t2_funcs ) |
100 ) | |
101 | 101 |
102 | 102 |
103 FT_DEFINE_MODULE(pshinter_module_class, | 103 FT_DEFINE_MODULE( |
| 104 pshinter_module_class, |
104 | 105 |
105 0, | 106 0, |
106 sizeof ( PS_Hinter_ModuleRec ), | 107 sizeof ( PS_Hinter_ModuleRec ), |
107 "pshinter", | 108 "pshinter", |
108 0x10000L, | 109 0x10000L, |
109 0x20000L, | 110 0x20000L, |
110 | 111 |
111 &FTPSHINTER_INTERFACE_GET, /* module-specific interface */ | 112 &PSHINTER_INTERFACE_GET, /* module-specific interface */ |
112 | 113 |
113 (FT_Module_Constructor)ps_hinter_init, | 114 (FT_Module_Constructor)ps_hinter_init, |
114 (FT_Module_Destructor) ps_hinter_done, | 115 (FT_Module_Destructor) ps_hinter_done, |
115 (FT_Module_Requester) 0 /* no additional interface for now */ | 116 (FT_Module_Requester) NULL ) /* no additional interface for now */ |
116 ) | 117 |
117 | 118 |
118 /* END */ | 119 /* END */ |
OLD | NEW |