zenilib: zenilib/jni/external/freetype2/src/cff/cffobjs.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cffobjs.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* cffobjs.h */
4 /* */
5 /* OpenType objects manager (specification). */
6 /* */
7 /* Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2008 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 #ifndef __CFFOBJS_H__
20 #define __CFFOBJS_H__
21
22
23 #include <ft2build.h>
24 #include FT_INTERNAL_OBJECTS_H
25 #include "cfftypes.h"
26 #include FT_INTERNAL_TRUETYPE_TYPES_H
27 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
28 #include FT_INTERNAL_POSTSCRIPT_HINTS_H
29
30
31 FT_BEGIN_HEADER
32
33
34 /*************************************************************************/
35 /* */
36 /* <Type> */
37 /* CFF_Driver */
38 /* */
39 /* <Description> */
40 /* A handle to an OpenType driver object. */
41 /* */
42 typedef struct CFF_DriverRec_* CFF_Driver;
43
44 typedef TT_Face CFF_Face;
45
46
47 /*************************************************************************/
48 /* */
49 /* <Type> */
50 /* CFF_Size */
51 /* */
52 /* <Description> */
53 /* A handle to an OpenType size object. */
54 /* */
55 typedef struct CFF_SizeRec_
56 {
57 FT_SizeRec root;
58 FT_ULong strike_index; /* 0xFFFFFFFF to indicate invalid */
59
60 } CFF_SizeRec, *CFF_Size;
61
62
63 /*************************************************************************/
64 /* */
65 /* <Type> */
66 /* CFF_GlyphSlot */
67 /* */
68 /* <Description> */
69 /* A handle to an OpenType glyph slot object. */
70 /* */
71 typedef struct CFF_GlyphSlotRec_
72 {
73 FT_GlyphSlotRec root;
74
75 FT_Bool hint;
76 FT_Bool scaled;
77
78 FT_Fixed x_scale;
79 FT_Fixed y_scale;
80
81 } CFF_GlyphSlotRec, *CFF_GlyphSlot;
82
83
84 /*************************************************************************/
85 /* */
86 /* <Type> */
87 /* CFF_Internal */
88 /* */
89 /* <Description> */
90 /* The interface to the `internal' field of `FT_Size'. */
91 /* */
92 typedef struct CFF_InternalRec_
93 {
94 PSH_Globals topfont;
95 PSH_Globals subfonts[CFF_MAX_CID_FONTS];
96
97 } CFF_InternalRec, *CFF_Internal;
98
99
100 /*************************************************************************/
101 /* */
102 /* Subglyph transformation record. */
103 /* */
104 typedef struct CFF_Transform_
105 {
106 FT_Fixed xx, xy; /* transformation matrix coefficients */
107 FT_Fixed yx, yy;
108 FT_F26Dot6 ox, oy; /* offsets */
109
110 } CFF_Transform;
111
112
113 /***********************************************************************/
114 /* */
115 /* TrueType driver class. */
116 /* */
117 typedef struct CFF_DriverRec_
118 {
119 FT_DriverRec root;
120 void* extension_component;
121
122 } CFF_DriverRec;
123
124
125 FT_LOCAL( FT_Error )
126 cff_size_init( FT_Size size ); /* CFF_Size */
127
128 FT_LOCAL( void )
129 cff_size_done( FT_Size size ); /* CFF_Size */
130
131 FT_LOCAL( FT_Error )
132 cff_size_request( FT_Size size,
133 FT_Size_Request req );
134
135 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS
136
137 FT_LOCAL( FT_Error )
138 cff_size_select( FT_Size size,
139 FT_ULong strike_index );
140
141 #endif
142
143 FT_LOCAL( void )
144 cff_slot_done( FT_GlyphSlot slot );
145
146 FT_LOCAL( FT_Error )
147 cff_slot_init( FT_GlyphSlot slot );
148
149
150 /*************************************************************************/
151 /* */
152 /* Face functions */
153 /* */
154 FT_LOCAL( FT_Error )
155 cff_face_init( FT_Stream stream,
156 FT_Face face, /* CFF_Face */
157 FT_Int face_index,
158 FT_Int num_params,
159 FT_Parameter* params );
160
161 FT_LOCAL( void )
162 cff_face_done( FT_Face face ); /* CFF_Face */
163
164
165 /*************************************************************************/
166 /* */
167 /* Driver functions */
168 /* */
169 FT_LOCAL( FT_Error )
170 cff_driver_init( FT_Module module );
171
172 FT_LOCAL( void )
173 cff_driver_done( FT_Module module );
174
175
176 FT_END_HEADER
177
178 #endif /* __CFFOBJS_H__ */
179
180
181 /* END */
PSH_Globals
typedefFT_BEGIN_HEADER struct PSH_GlobalsRec_ * PSH_Globals
Definition: pshints.h:41
cff_face_init
cff_face_init(FT_Stream stream, FT_Face cffface, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
Definition: cffobjs.c:478
FT_SizeRec_
Definition: freetype.h:1395
FT_Error
int FT_Error
Definition: fttypes.h:296
FT_ULong
unsigned long FT_ULong
Definition: fttypes.h:249
CFF_Transform_
Definition: cffobjs.h:104
FT_GlyphSlotRec_
Definition: freetype.h:1605
CFF_InternalRec_::subfonts
PSH_Globals subfonts[CFF_MAX_CID_FONTS]
Definition: cffobjs.h:95
FT_END_HEADER
#define FT_END_HEADER
Definition: ftheader.h:54
FT_ModuleRec_
Definition: ftobjs.h:439
CFF_DriverRec_
Definition: cffobjs.h:117
CFF_SizeRec_::strike_index
FT_ULong strike_index
Definition: cffobjs.h:58
FT_Int
signed int FT_Int
Definition: fttypes.h:216
stream
GLuint GLuint stream
Definition: glew.h:6573
cff_size_init
cff_size_init(FT_Size cffsize)
Definition: cffobjs.c:153
CFF_Face
TT_Face CFF_Face
Definition: cffobjs.h:44
CFF_Transform_::yx
FT_Fixed yx
Definition: cffobjs.h:107
CFF_Transform_::ox
FT_F26Dot6 ox
Definition: cffobjs.h:108
CFF_GlyphSlotRec_::root
FT_GlyphSlotRec root
Definition: cffobjs.h:73
FT_Bool
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
cfftypes.h
cff_driver_done
cff_driver_done(FT_Module module)
Definition: cffobjs.c:1068
CFF_GlyphSlotRec_
Definition: cffobjs.h:71
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
CFF_GlyphSlot
struct CFF_GlyphSlotRec_ * CFF_GlyphSlot
params
GLenum GLvoid ** params
Definition: gl2ext.h:806
CFF_Internal
struct CFF_InternalRec_ * CFF_Internal
FT_LOCAL
#define FT_LOCAL(x)
Definition: ftconfig.h:466
CFF_DriverRec_::root
FT_DriverRec root
Definition: cffobjs.h:119
CFF_Transform_::oy
FT_F26Dot6 oy
Definition: cffobjs.h:108
cff_driver_init
cff_driver_init(FT_Module module)
Definition: cffobjs.c:1059
FT_FaceRec_
Definition: freetype.h:912
CFF_GlyphSlotRec_::y_scale
FT_Fixed y_scale
Definition: cffobjs.h:79
CFF_SizeRec_::root
FT_SizeRec root
Definition: cffobjs.h:57
CFF_InternalRec_
Definition: cffobjs.h:92
CFF_InternalRec
struct CFF_InternalRec_ CFF_InternalRec
face
GLenum face
Definition: gl2ext.h:1490
FT_Size_RequestRec_
Definition: freetype.h:2185
FT_DriverRec_
Definition: ftobjs.h:715
cff_slot_init
cff_slot_init(FT_GlyphSlot slot)
Definition: cffobjs.c:346
CFF_MAX_CID_FONTS
#define CFF_MAX_CID_FONTS
Definition: cfftypes.h:216
CFF_Size
struct CFF_SizeRec_ * CFF_Size
CFF_Transform_::xx
FT_Fixed xx
Definition: cffobjs.h:106
FT_F26Dot6
signed long FT_F26Dot6
Definition: fttypes.h:272
CFF_GlyphSlotRec_::scaled
FT_Bool scaled
Definition: cffobjs.h:76
ft2build.h
CFF_GlyphSlotRec_::hint
FT_Bool hint
Definition: cffobjs.h:75
FT_Fixed
signed long FT_Fixed
Definition: fttypes.h:284
CFF_SizeRec
struct CFF_SizeRec_ CFF_SizeRec
CFF_Transform
struct CFF_Transform_ CFF_Transform
CFF_Driver
typedefFT_BEGIN_HEADER struct CFF_DriverRec_ * CFF_Driver
Definition: cffobjs.h:42
cff_slot_done
cff_slot_done(FT_GlyphSlot slot)
Definition: cffobjs.c:339
CFF_Transform_::xy
FT_Fixed xy
Definition: cffobjs.h:106
cff_size_done
cff_size_done(FT_Size cffsize)
Definition: cffobjs.c:72
cff_size_request
cff_size_request(FT_Size size, FT_Size_Request req)
Definition: cffobjs.c:263
CFF_Transform_::yy
FT_Fixed yy
Definition: cffobjs.h:107
CFF_InternalRec_::topfont
PSH_Globals topfont
Definition: cffobjs.h:94
FT_StreamRec_
Definition: ftsystem.h:321
cff_face_done
cff_face_done(FT_Face cffface)
Definition: cffobjs.c:1029
CFF_GlyphSlotRec
struct CFF_GlyphSlotRec_ CFF_GlyphSlotRec
TT_FaceRec_
Definition: tttypes.h:1258
CFF_GlyphSlotRec_::x_scale
FT_Fixed x_scale
Definition: cffobjs.h:78
CFF_DriverRec
struct CFF_DriverRec_ CFF_DriverRec
CFF_DriverRec_::extension_component
void * extension_component
Definition: cffobjs.h:120
CFF_SizeRec_
Definition: cffobjs.h:55
FT_Parameter_
Definition: freetype.h:1763
size
GLsizei size
Definition: gl2ext.h:1467