OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ttpic.h */ | 3 /* ttpic.h */ |
4 /* */ | 4 /* */ |
5 /* The FreeType position independent code services for truetype module. */ | 5 /* The FreeType position independent code services for truetype module. */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2009 by */ | 7 /* Copyright 2009 by */ |
8 /* Oran Agra and Mickey Gabel. */ | 8 /* Oran Agra and Mickey Gabel. */ |
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 __TTPIC_H__ | 19 #ifndef __TTPIC_H__ |
20 #define __TTPIC_H__ | 20 #define __TTPIC_H__ |
21 | 21 |
22 | 22 |
23 FT_BEGIN_HEADER | 23 FT_BEGIN_HEADER |
24 | 24 |
25 #ifndef FT_CONFIG_OPTION_PIC | 25 #ifndef FT_CONFIG_OPTION_PIC |
26 #define FT_TT_SERVICES_GET tt_services | 26 #define FT_TT_SERVICES_GET tt_services |
27 #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET tt_service_gx_multi_masters | 27 #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET tt_service_gx_multi_masters |
28 #define FT_TT_SERVICE_TRUETYPE_GLYF_GET tt_service_truetype_glyf | 28 #define FT_TT_SERVICE_TRUETYPE_GLYF_GET tt_service_truetype_glyf |
29 | 29 |
30 #else /* FT_CONFIG_OPTION_PIC */ | 30 #else /* FT_CONFIG_OPTION_PIC */ |
31 | 31 |
32 #include FT_MULTIPLE_MASTERS_H | 32 #include FT_MULTIPLE_MASTERS_H |
33 #include FT_SERVICE_MULTIPLE_MASTERS_H | 33 #include FT_SERVICE_MULTIPLE_MASTERS_H |
34 #include FT_SERVICE_TRUETYPE_GLYF_H | 34 #include FT_SERVICE_TRUETYPE_GLYF_H |
35 | 35 |
36 typedef struct TTModulePIC_ | 36 typedef struct TTModulePIC_ |
37 { | 37 { |
38 FT_ServiceDescRec* tt_services; | 38 FT_ServiceDescRec* tt_services; |
39 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT | 39 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT |
40 FT_Service_MultiMastersRec tt_service_gx_multi_masters; | 40 FT_Service_MultiMastersRec tt_service_gx_multi_masters; |
41 #endif | 41 #endif |
42 FT_Service_TTGlyfRec tt_service_truetype_glyf; | 42 FT_Service_TTGlyfRec tt_service_truetype_glyf; |
43 } TTModulePIC; | 43 } TTModulePIC; |
44 | 44 |
45 #define GET_PIC(lib) ((TTModulePIC*)((lib)->pic_containe
r.truetype)) | 45 #define GET_PIC(lib) ((TTModulePIC*)((lib)->pic_containe
r.truetype)) |
46 #define FT_TT_SERVICES_GET (GET_PIC(library)->tt_services) | 46 #define FT_TT_SERVICES_GET (GET_PIC(library)->tt_services) |
47 #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET (GET_PIC(library)->tt_service_gx_mu
lti_masters) | 47 #define FT_TT_SERVICE_GX_MULTI_MASTERS_GET (GET_PIC(library)->tt_service_gx_mu
lti_masters) |
48 #define FT_TT_SERVICE_TRUETYPE_GLYF_GET (GET_PIC(library)->tt_service_truet
ype_glyf) | 48 #define FT_TT_SERVICE_TRUETYPE_GLYF_GET (GET_PIC(library)->tt_service_truet
ype_glyf) |
49 | 49 |
| 50 /* see ttpic.c for the implementation */ |
| 51 void |
| 52 tt_driver_class_pic_free( FT_Library library ); |
| 53 |
| 54 FT_Error |
| 55 tt_driver_class_pic_init( FT_Library library ); |
| 56 |
50 #endif /* FT_CONFIG_OPTION_PIC */ | 57 #endif /* FT_CONFIG_OPTION_PIC */ |
51 | 58 |
52 /* */ | 59 /* */ |
53 | 60 |
54 FT_END_HEADER | 61 FT_END_HEADER |
55 | 62 |
56 #endif /* __TTPIC_H__ */ | 63 #endif /* __TTPIC_H__ */ |
57 | 64 |
58 | 65 |
59 /* END */ | 66 /* END */ |
OLD | NEW |