1 /***************************************************************************/
2 /* */
3 /* pshmod.c */
4 /* */
5 /* FreeType PostScript hinter module implementation (body). */
6 /* */
7 /* Copyright 2001-2018 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
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. */
15 /* */
16 /***************************************************************************/
17
18
19 #include <ft2build.h>
20 #include FT_INTERNAL_OBJECTS_H
21 #include "pshrec.h"
22 #include "pshalgo.h"
23 #include "pshpic.h"
24
25
26 /* the Postscript Hinter module structure */
27 typedef struct PS_Hinter_Module_Rec_
28 {
29 FT_ModuleRec root;
30 PS_HintsRec ps_hints;
31
32 PSH_Globals_FuncsRec globals_funcs;
33 T1_Hints_FuncsRec t1_funcs;
34 T2_Hints_FuncsRec t2_funcs;
35
36 } PS_Hinter_ModuleRec, *PS_Hinter_Module;
37
38
39 /* finalize module */
40 FT_CALLBACK_DEF( void )
41 ps_hinter_done( PS_Hinter_Module module )
42 {
43 module->t1_funcs.hints = NULL;
94
95
96 FT_DEFINE_PSHINTER_INTERFACE(
97 pshinter_interface,
98
99 pshinter_get_globals_funcs,
100 pshinter_get_t1_funcs,
101 pshinter_get_t2_funcs
102 )
103
104
105 FT_DEFINE_MODULE(
106 pshinter_module_class,
107
108 0,
109 sizeof ( PS_Hinter_ModuleRec ),
110 "pshinter",
111 0x10000L,
112 0x20000L,
113
114 &PSHINTER_INTERFACE_GET, /* module-specific interface */
115
116 (FT_Module_Constructor)ps_hinter_init, /* module_init */
117 (FT_Module_Destructor) ps_hinter_done, /* module_done */
118 (FT_Module_Requester) NULL /* get_interface */
119 )
120
121 /* END */
|
1 /****************************************************************************
2 *
3 * pshmod.c
4 *
5 * FreeType PostScript hinter module implementation (body).
6 *
7 * Copyright (C) 2001-2019 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
9 *
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.
15 *
16 */
17
18
19 #include <ft2build.h>
20 #include FT_INTERNAL_OBJECTS_H
21 #include "pshrec.h"
22 #include "pshalgo.h"
23
24
25 /* the Postscript Hinter module structure */
26 typedef struct PS_Hinter_Module_Rec_
27 {
28 FT_ModuleRec root;
29 PS_HintsRec ps_hints;
30
31 PSH_Globals_FuncsRec globals_funcs;
32 T1_Hints_FuncsRec t1_funcs;
33 T2_Hints_FuncsRec t2_funcs;
34
35 } PS_Hinter_ModuleRec, *PS_Hinter_Module;
36
37
38 /* finalize module */
39 FT_CALLBACK_DEF( void )
40 ps_hinter_done( PS_Hinter_Module module )
41 {
42 module->t1_funcs.hints = NULL;
93
94
95 FT_DEFINE_PSHINTER_INTERFACE(
96 pshinter_interface,
97
98 pshinter_get_globals_funcs,
99 pshinter_get_t1_funcs,
100 pshinter_get_t2_funcs
101 )
102
103
104 FT_DEFINE_MODULE(
105 pshinter_module_class,
106
107 0,
108 sizeof ( PS_Hinter_ModuleRec ),
109 "pshinter",
110 0x10000L,
111 0x20000L,
112
113 &pshinter_interface, /* module-specific interface */
114
115 (FT_Module_Constructor)ps_hinter_init, /* module_init */
116 (FT_Module_Destructor) ps_hinter_done, /* module_done */
117 (FT_Module_Requester) NULL /* get_interface */
118 )
119
120 /* END */
|