Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
ttpic.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* ttpic.h */
4 /* */
5 /* The FreeType position independent code services for truetype module. */
6 /* */
7 /* Copyright 2009, 2012 by */
8 /* Oran Agra and Mickey Gabel. */
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 #ifndef __TTPIC_H__
20 #define __TTPIC_H__
21 
22 
24 
25 #ifndef FT_CONFIG_OPTION_PIC
26 
27 #define TT_SERVICES_GET tt_services
28 #define TT_SERVICE_GX_MULTI_MASTERS_GET tt_service_gx_multi_masters
29 #define TT_SERVICE_TRUETYPE_GLYF_GET tt_service_truetype_glyf
30 
31 #else /* FT_CONFIG_OPTION_PIC */
32 
33 #include FT_MULTIPLE_MASTERS_H
34 #include FT_SERVICE_MULTIPLE_MASTERS_H
35 #include FT_SERVICE_TRUETYPE_GLYF_H
36 
37 
38  typedef struct TTModulePIC_
39  {
40  FT_ServiceDescRec* tt_services;
41 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
42  FT_Service_MultiMastersRec tt_service_gx_multi_masters;
43 #endif
44  FT_Service_TTGlyfRec tt_service_truetype_glyf;
45 
46  } TTModulePIC;
47 
48 
49 #define GET_PIC( lib ) \
50  ( (TTModulePIC*)((lib)->pic_container.truetype) )
51 #define TT_SERVICES_GET \
52  ( GET_PIC( library )->tt_services )
53 #define TT_SERVICE_GX_MULTI_MASTERS_GET \
54  ( GET_PIC( library )->tt_service_gx_multi_masters )
55 #define TT_SERVICE_TRUETYPE_GLYF_GET \
56  ( GET_PIC( library )->tt_service_truetype_glyf )
57 
58 
59  /* see ttpic.c for the implementation */
60  void
61  tt_driver_class_pic_free( FT_Library library );
62 
63  FT_Error
64  tt_driver_class_pic_init( FT_Library library );
65 
66 #endif /* FT_CONFIG_OPTION_PIC */
67 
68  /* */
69 
71 
72 #endif /* __TTPIC_H__ */
73 
74 
75 /* END */
int FT_Error
Definition: fttypes.h:296
#define FT_END_HEADER
Definition: ftheader.h:54
FT_Library library
Definition: cffdrivr.c:414
#define FT_BEGIN_HEADER
Definition: ftheader.h:36