ReactOS 0.4.16-dev-2354-g16de117
psobjs.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * psobjs.h
4 *
5 * Auxiliary functions for PostScript fonts (specification).
6 *
7 * Copyright (C) 1996-2020 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 PSOBJS_H_
20#define PSOBJS_H_
21
22
25
26
28
29
30 /*************************************************************************/
31 /*************************************************************************/
32 /***** *****/
33 /***** T1_TABLE *****/
34 /***** *****/
35 /*************************************************************************/
36 /*************************************************************************/
37
38
41
44
47
48
53
56 FT_Int idx,
57 const void* object,
59
60 FT_LOCAL( void )
62
63
64 FT_LOCAL( void )
66
67
68 /*************************************************************************/
69 /*************************************************************************/
70 /***** *****/
71 /***** T1 PARSER *****/
72 /***** *****/
73 /*************************************************************************/
74 /*************************************************************************/
75
76
77 FT_LOCAL( void )
79
80 FT_LOCAL( void )
82
83 FT_LOCAL( void )
86
87 FT_LOCAL( void )
89 T1_Token tokens,
90 FT_UInt max_tokens,
91 FT_Int* pnum_tokens );
92
95 const T1_Field field,
96 void** objects,
97 FT_UInt max_objects,
98 FT_ULong* pflags );
99
102 const T1_Field field,
103 void** objects,
104 FT_UInt max_objects,
105 FT_ULong* pflags );
106
109
110
113 FT_Byte* bytes,
114 FT_Offset max_bytes,
115 FT_ULong* pnum_bytes,
116 FT_Bool delimiters );
117
118
121 FT_Int power_ten );
122
123
126 FT_Int max_coords,
127 FT_Short* coords );
128
131 FT_Int max_values,
133 FT_Int power_ten );
134
135
136 FT_LOCAL( void )
138 FT_Byte* base,
139 FT_Byte* limit,
141
142 FT_LOCAL( void )
144
145
146 /*************************************************************************/
147 /*************************************************************************/
148 /***** *****/
149 /***** T1 BUILDER *****/
150 /***** *****/
151 /*************************************************************************/
152 /*************************************************************************/
153
154 FT_LOCAL( void )
158 FT_GlyphSlot glyph,
159 FT_Bool hinting );
160
161 FT_LOCAL( void )
162 t1_builder_done( T1_Builder builder );
163
166 FT_Int count );
167
168 FT_LOCAL( void )
170 FT_Pos x,
171 FT_Pos y,
172 FT_Byte flag );
173
176 FT_Pos x,
177 FT_Pos y );
178
181
182
185 FT_Pos x,
186 FT_Pos y );
187
188
189 FT_LOCAL( void )
191
192
193 /*************************************************************************/
194 /*************************************************************************/
195 /***** *****/
196 /***** CFF BUILDER *****/
197 /***** *****/
198 /*************************************************************************/
199 /*************************************************************************/
200
201 FT_LOCAL( void )
205 CFF_GlyphSlot glyph,
206 FT_Bool hinting );
207
208 FT_LOCAL( void )
209 cff_builder_done( CFF_Builder* builder );
210
213 FT_Int count );
214
215 FT_LOCAL( void )
217 FT_Pos x,
218 FT_Pos y,
219 FT_Byte flag );
222 FT_Pos x,
223 FT_Pos y );
226 FT_Pos x,
227 FT_Pos y );
228 FT_LOCAL( void )
230
233
234
235 /*************************************************************************/
236 /*************************************************************************/
237 /***** *****/
238 /***** PS BUILDER *****/
239 /***** *****/
240 /*************************************************************************/
241 /*************************************************************************/
242
243 FT_LOCAL( void )
244 ps_builder_init( PS_Builder* ps_builder,
245 void* builder,
246 FT_Bool is_t1 );
247
248
249 FT_LOCAL( void )
250 ps_builder_done( PS_Builder* builder );
251
254 FT_Int count );
255
256 FT_LOCAL( void )
258 FT_Pos x,
259 FT_Pos y,
260 FT_Byte flag );
261
264 FT_Pos x,
265 FT_Pos y );
266
269
272 FT_Pos x,
273 FT_Pos y );
274
275 FT_LOCAL( void )
277
278
279 /*************************************************************************/
280 /*************************************************************************/
281 /***** *****/
282 /***** OTHER *****/
283 /***** *****/
284 /*************************************************************************/
285 /*************************************************************************/
286
287 FT_LOCAL( void )
288 ps_decoder_init( PS_Decoder* ps_decoder,
289 void* decoder,
290 FT_Bool is_t1 );
291
292 FT_LOCAL( void )
294 PS_Private priv,
295 CFF_SubFont subfont );
296
297 FT_LOCAL( void )
300 FT_UShort seed );
301
302
303 FT_LOCAL( FT_UInt32 )
304 cff_random( FT_UInt32 r );
305
306
308
309#endif /* PSOBJS_H_ */
310
311
312/* END */
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
#define FT_LOCAL(x)
#define FT_CALLBACK_TABLE
unsigned int idx
Definition: utils.c:41
#define FT_END_HEADER
Definition: ftheader.h:57
#define FT_BEGIN_HEADER
Definition: ftheader.h:37
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:57
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:64
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
unsigned long FT_ULong
Definition: fttypes.h:253
unsigned char FT_Byte
Definition: fttypes.h:154
signed long FT_Fixed
Definition: fttypes.h:287
int FT_Error
Definition: fttypes.h:299
signed long FT_Long
Definition: fttypes.h:242
unsigned short FT_UShort
Definition: fttypes.h:209
signed short FT_Short
Definition: fttypes.h:198
unsigned int FT_UInt
Definition: fttypes.h:231
size_t FT_Offset
Definition: fttypes.h:323
signed int FT_Int
Definition: fttypes.h:220
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLuint buffer
Definition: glext.h:5915
GLsizeiptr size
Definition: glext.h:5919
GLuint coords
Definition: glext.h:7368
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
GLint limit
Definition: glext.h:10326
GLboolean GLenum GLenum GLvoid * values
Definition: glext.h:5666
GLuint GLsizei GLsizei * length
Definition: glext.h:6040
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
Definition: glfuncs.h:210
static const CLSID * objects[]
Definition: apphelp.c:112
static char memory[1024 *256]
Definition: process.c:122
cff_builder_add_point1(CFF_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1965
ps_parser_skip_PS_token(PS_Parser parser)
Definition: psobjs.c:517
t1_builder_close_contour(T1_Builder builder)
Definition: psobjs.c:1753
cff_builder_add_point(CFF_Builder *builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:1927
ps_parser_to_fixed(PS_Parser parser, FT_Int power_ten)
Definition: psobjs.c:1469
ps_parser_to_token_array(PS_Parser parser, T1_Token tokens, FT_UInt max_tokens, FT_Int *pnum_tokens)
Definition: psobjs.c:728
ps_builder_close_contour(PS_Builder *builder)
Definition: psobjs.c:2340
ps_builder_add_contour(PS_Builder *builder)
Definition: psobjs.c:2283
ps_decoder_init(PS_Decoder *ps_decoder, void *decoder, FT_Bool is_t1)
Definition: psobjs.c:2422
ps_builder_init(PS_Builder *ps_builder, void *builder, FT_Bool is_t1)
Definition: psobjs.c:2118
ps_parser_init(PS_Parser parser, FT_Byte *base, FT_Byte *limit, FT_Memory memory)
Definition: psobjs.c:1519
t1_builder_start_point(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1728
t1_builder_init(T1_Builder builder, FT_Face face, FT_Size size, FT_GlyphSlot glyph, FT_Bool hinting)
Definition: psobjs.c:1574
ps_table_done(PS_Table table)
Definition: psobjs.c:243
t1_builder_add_point1(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1676
cff_check_points(CFF_Builder *builder, FT_Int count)
Definition: psobjs.c:1918
t1_builder_check_points(T1_Builder builder, FT_Int count)
Definition: psobjs.c:1643
ps_parser_to_coord_array(PS_Parser parser, FT_Int max_coords, FT_Short *coords)
Definition: psobjs.c:1478
ps_table_release(PS_Table table)
Definition: psobjs.c:267
ps_parser_load_field_table(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1329
ps_builder_add_point(PS_Builder *builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:2216
ps_parser_to_int(PS_Parser parser)
Definition: psobjs.c:1406
ps_parser_to_token(PS_Parser parser, T1_Token token)
Definition: psobjs.c:625
ps_parser_skip_spaces(PS_Parser parser)
Definition: psobjs.c:615
t1_builder_done(T1_Builder builder)
Definition: psobjs.c:1631
cff_builder_start_point(CFF_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:2010
cff_random(FT_UInt32 r)
Definition: psobjs.c:2587
ps_parser_to_bytes(PS_Parser parser, FT_Byte *bytes, FT_Offset max_bytes, FT_ULong *pnum_bytes, FT_Bool delimiters)
Definition: psobjs.c:1416
ps_table_new(PS_Table table, FT_Int count, FT_Memory memory)
Definition: psobjs.c:73
t1_builder_add_point(T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:1652
t1_decrypt(FT_Byte *buffer, FT_Offset length, FT_UShort seed)
Definition: psobjs.c:2574
t1_make_subfont(FT_Face face, PS_Private priv, CFF_SubFont subfont)
Definition: psobjs.c:2489
FT_BEGIN_HEADER FT_CALLBACK_TABLE const PS_Table_FuncsRec ps_table_funcs
Definition: psobjs.h:40
t1_builder_add_contour(T1_Builder builder)
Definition: psobjs.c:1693
ps_parser_done(PS_Parser parser)
Definition: psobjs.c:1534
ps_builder_done(PS_Builder *builder)
Definition: psobjs.c:2195
ps_builder_add_point1(PS_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:2266
ps_table_add(PS_Table table, FT_Int idx, const void *object, FT_UInt length)
Definition: psobjs.c:176
cff_builder_done(CFF_Builder *builder)
Definition: psobjs.c:1906
FT_CALLBACK_TABLE const PS_Parser_FuncsRec ps_parser_funcs
Definition: psobjs.h:43
cff_builder_init(CFF_Builder *builder, TT_Face face, CFF_Size size, CFF_GlyphSlot glyph, FT_Bool hinting)
Definition: psobjs.c:1840
cff_builder_add_contour(CFF_Builder *builder)
Definition: psobjs.c:1982
ps_parser_to_fixed_array(PS_Parser parser, FT_Int max_values, FT_Fixed *values, FT_Int power_ten)
Definition: psobjs.c:1489
cff_builder_close_contour(CFF_Builder *builder)
Definition: psobjs.c:2032
ps_builder_start_point(PS_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:2318
ps_parser_load_field(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1032
ps_builder_check_points(PS_Builder *builder, FT_Int count)
Definition: psobjs.c:2207
FT_CALLBACK_TABLE const T1_Builder_FuncsRec t1_builder_funcs
Definition: psobjs.h:46
Definition: parser.c:44
Definition: import.c:81