ReactOS 0.4.15-dev-7842-g558ab78
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 1996-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#ifndef PSOBJS_H_
20#define PSOBJS_H_
21
22
23#include <ft2build.h>
24#include FT_INTERNAL_POSTSCRIPT_AUX_H
25#include FT_INTERNAL_CFF_OBJECTS_TYPES_H
26
27
29
30
31 /*************************************************************************/
32 /*************************************************************************/
33 /***** *****/
34 /***** T1_TABLE *****/
35 /***** *****/
36 /*************************************************************************/
37 /*************************************************************************/
38
39
42
45
48
49
54
57 FT_Int idx,
58 void* object,
60
61 FT_LOCAL( void )
63
64
65 FT_LOCAL( void )
67
68
69 /*************************************************************************/
70 /*************************************************************************/
71 /***** *****/
72 /***** T1 PARSER *****/
73 /***** *****/
74 /*************************************************************************/
75 /*************************************************************************/
76
77
78 FT_LOCAL( void )
80
81 FT_LOCAL( void )
83
84 FT_LOCAL( void )
87
88 FT_LOCAL( void )
90 T1_Token tokens,
91 FT_UInt max_tokens,
92 FT_Int* pnum_tokens );
93
96 const T1_Field field,
97 void** objects,
98 FT_UInt max_objects,
99 FT_ULong* pflags );
100
103 const T1_Field field,
104 void** objects,
105 FT_UInt max_objects,
106 FT_ULong* pflags );
107
110
111
114 FT_Byte* bytes,
115 FT_Offset max_bytes,
116 FT_ULong* pnum_bytes,
117 FT_Bool delimiters );
118
119
122 FT_Int power_ten );
123
124
127 FT_Int max_coords,
128 FT_Short* coords );
129
132 FT_Int max_values,
134 FT_Int power_ten );
135
136
137 FT_LOCAL( void )
139 FT_Byte* base,
140 FT_Byte* limit,
142
143 FT_LOCAL( void )
145
146
147 /*************************************************************************/
148 /*************************************************************************/
149 /***** *****/
150 /***** T1 BUILDER *****/
151 /***** *****/
152 /*************************************************************************/
153 /*************************************************************************/
154
155 FT_LOCAL( void )
159 FT_GlyphSlot glyph,
160 FT_Bool hinting );
161
162 FT_LOCAL( void )
163 t1_builder_done( T1_Builder builder );
164
167 FT_Int count );
168
169 FT_LOCAL( void )
171 FT_Pos x,
172 FT_Pos y,
173 FT_Byte flag );
174
177 FT_Pos x,
178 FT_Pos y );
179
182
183
186 FT_Pos x,
187 FT_Pos y );
188
189
190 FT_LOCAL( void )
192
193
194 /*************************************************************************/
195 /*************************************************************************/
196 /***** *****/
197 /***** CFF BUILDER *****/
198 /***** *****/
199 /*************************************************************************/
200 /*************************************************************************/
201
202 FT_LOCAL( void )
206 CFF_GlyphSlot glyph,
207 FT_Bool hinting );
208
209 FT_LOCAL( void )
210 cff_builder_done( CFF_Builder* builder );
211
214 FT_Int count );
215
216 FT_LOCAL( void )
218 FT_Pos x,
219 FT_Pos y,
220 FT_Byte flag );
223 FT_Pos x,
224 FT_Pos y );
227 FT_Pos x,
228 FT_Pos y );
229 FT_LOCAL( void )
231
234
235
236 /*************************************************************************/
237 /*************************************************************************/
238 /***** *****/
239 /***** PS BUILDER *****/
240 /***** *****/
241 /*************************************************************************/
242 /*************************************************************************/
243
244 FT_LOCAL( void )
245 ps_builder_init( PS_Builder* ps_builder,
246 void* builder,
247 FT_Bool is_t1 );
248
249
250 FT_LOCAL( void )
251 ps_builder_done( PS_Builder* builder );
252
255 FT_Int count );
256
257 FT_LOCAL( void )
259 FT_Pos x,
260 FT_Pos y,
261 FT_Byte flag );
262
265 FT_Pos x,
266 FT_Pos y );
267
270
273 FT_Pos x,
274 FT_Pos y );
275
276 FT_LOCAL( void )
278
279
280 /*************************************************************************/
281 /*************************************************************************/
282 /***** *****/
283 /***** OTHER *****/
284 /***** *****/
285 /*************************************************************************/
286 /*************************************************************************/
287
288 FT_LOCAL( void )
289 ps_decoder_init( PS_Decoder* ps_decoder,
290 void* decoder,
291 FT_Bool is_t1 );
292
293 FT_LOCAL( void )
295 PS_Private priv,
296 CFF_SubFont subfont );
297
298 FT_LOCAL( void )
301 FT_UShort seed );
302
303
304 FT_LOCAL( FT_UInt32 )
305 cff_random( FT_UInt32 r );
306
307
309
310#endif /* PSOBJS_H_ */
311
312
313/* END */
static unsigned char bytes[4]
Definition: adnsresfilter.c:74
unsigned int idx
Definition: utils.c:41
#define FT_LOCAL(x)
Definition: ftconfig.h:387
#define FT_CALLBACK_TABLE
Definition: ftconfig.h:552
#define FT_END_HEADER
Definition: ftheader.h:54
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:58
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
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:288
int FT_Error
Definition: fttypes.h:300
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:324
signed int FT_Int
Definition: fttypes.h:220
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLsizeiptr size
Definition: glext.h:5919
GLuint buffer
Definition: glext.h:5915
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:116
cff_builder_add_point1(CFF_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1917
ps_parser_skip_PS_token(PS_Parser parser)
Definition: psobjs.c:510
t1_builder_close_contour(T1_Builder builder)
Definition: psobjs.c:1711
cff_builder_add_point(CFF_Builder *builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:1879
ps_parser_to_fixed(PS_Parser parser, FT_Int power_ten)
Definition: psobjs.c:1433
ps_parser_to_token_array(PS_Parser parser, T1_Token tokens, FT_UInt max_tokens, FT_Int *pnum_tokens)
Definition: psobjs.c:721
ps_builder_close_contour(PS_Builder *builder)
Definition: psobjs.c:2278
ps_builder_add_contour(PS_Builder *builder)
Definition: psobjs.c:2221
ps_decoder_init(PS_Decoder *ps_decoder, void *decoder, FT_Bool is_t1)
Definition: psobjs.c:2357
ps_builder_init(PS_Builder *ps_builder, void *builder, FT_Bool is_t1)
Definition: psobjs.c:2057
ps_parser_init(PS_Parser parser, FT_Byte *base, FT_Byte *limit, FT_Memory memory)
Definition: psobjs.c:1483
t1_builder_start_point(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1686
t1_builder_init(T1_Builder builder, FT_Face face, FT_Size size, FT_GlyphSlot glyph, FT_Bool hinting)
Definition: psobjs.c:1533
ps_table_done(PS_Table table)
Definition: psobjs.c:236
t1_builder_add_point1(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1634
cff_check_points(CFF_Builder *builder, FT_Int count)
Definition: psobjs.c:1870
t1_builder_check_points(T1_Builder builder, FT_Int count)
Definition: psobjs.c:1601
ps_parser_to_coord_array(PS_Parser parser, FT_Int max_coords, FT_Short *coords)
Definition: psobjs.c:1442
ps_table_release(PS_Table table)
Definition: psobjs.c:260
ps_parser_load_field_table(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1297
ps_builder_add_point(PS_Builder *builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:2154
ps_parser_to_int(PS_Parser parser)
Definition: psobjs.c:1370
ps_parser_to_token(PS_Parser parser, T1_Token token)
Definition: psobjs.c:618
ps_parser_skip_spaces(PS_Parser parser)
Definition: psobjs.c:608
t1_builder_done(T1_Builder builder)
Definition: psobjs.c:1589
cff_builder_start_point(CFF_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1962
cff_random(FT_UInt32 r)
Definition: psobjs.c:2522
ps_parser_to_bytes(PS_Parser parser, FT_Byte *bytes, FT_Offset max_bytes, FT_ULong *pnum_bytes, FT_Bool delimiters)
Definition: psobjs.c:1380
ps_table_new(PS_Table table, FT_Int count, FT_Memory memory)
Definition: psobjs.c:71
t1_builder_add_point(T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:1610
t1_decrypt(FT_Byte *buffer, FT_Offset length, FT_UShort seed)
Definition: psobjs.c:2509
t1_make_subfont(FT_Face face, PS_Private priv, CFF_SubFont subfont)
Definition: psobjs.c:2424
FT_BEGIN_HEADER FT_CALLBACK_TABLE const PS_Table_FuncsRec ps_table_funcs
Definition: psobjs.h:41
t1_builder_add_contour(T1_Builder builder)
Definition: psobjs.c:1651
ps_parser_done(PS_Parser parser)
Definition: psobjs.c:1498
ps_builder_done(PS_Builder *builder)
Definition: psobjs.c:2133
ps_builder_add_point1(PS_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:2204
ps_table_add(PS_Table table, FT_Int idx, void *object, FT_UInt length)
Definition: psobjs.c:170
cff_builder_done(CFF_Builder *builder)
Definition: psobjs.c:1858
FT_CALLBACK_TABLE const PS_Parser_FuncsRec ps_parser_funcs
Definition: psobjs.h:44
cff_builder_init(CFF_Builder *builder, TT_Face face, CFF_Size size, CFF_GlyphSlot glyph, FT_Bool hinting)
Definition: psobjs.c:1793
cff_builder_add_contour(CFF_Builder *builder)
Definition: psobjs.c:1934
ps_parser_to_fixed_array(PS_Parser parser, FT_Int max_values, FT_Fixed *values, FT_Int power_ten)
Definition: psobjs.c:1453
cff_builder_close_contour(CFF_Builder *builder)
Definition: psobjs.c:1984
ps_builder_start_point(PS_Builder *builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:2256
ps_parser_load_field(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1025
ps_builder_check_points(PS_Builder *builder, FT_Int count)
Definition: psobjs.c:2145
FT_CALLBACK_TABLE const T1_Builder_FuncsRec t1_builder_funcs
Definition: psobjs.h:47
Definition: parser.c:44
Definition: import.c:81