1 /***************************************************************************/
5 /* Auxiliary functions for PostScript fonts (specification). */
7 /* Copyright 1996-2001, 2002, 2003 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
24 #include FT_INTERNAL_POSTSCRIPT_AUX_H
30 /*************************************************************************/
31 /*************************************************************************/
33 /***** T1_TABLE *****/
35 /*************************************************************************/
36 /*************************************************************************/
40 const PS_Table_FuncsRec ps_table_funcs
;
43 const PS_Parser_FuncsRec ps_parser_funcs
;
46 const T1_Builder_FuncsRec t1_builder_funcs
;
50 ps_table_new( PS_Table table
,
55 ps_table_add( PS_Table table
,
61 ps_table_done( PS_Table table
);
65 ps_table_release( PS_Table table
);
68 /*************************************************************************/
69 /*************************************************************************/
71 /***** T1 PARSER *****/
73 /*************************************************************************/
74 /*************************************************************************/
78 ps_parser_skip_spaces( PS_Parser parser
);
81 ps_parser_skip_PS_token( PS_Parser parser
);
84 ps_parser_to_token( PS_Parser parser
,
88 ps_parser_to_token_array( PS_Parser parser
,
91 FT_Int
* pnum_tokens
);
94 ps_parser_load_field( PS_Parser parser
,
101 ps_parser_load_field_table( PS_Parser parser
,
102 const T1_Field field
,
108 ps_parser_to_int( PS_Parser parser
);
112 ps_parser_to_bytes( PS_Parser parser
,
116 FT_Bool delimiters
);
120 ps_parser_to_fixed( PS_Parser parser
,
125 ps_parser_to_coord_array( PS_Parser parser
,
130 ps_parser_to_fixed_array( PS_Parser parser
,
137 ps_parser_init( PS_Parser parser
,
143 ps_parser_done( PS_Parser parser
);
146 /*************************************************************************/
147 /*************************************************************************/
149 /***** T1 BUILDER *****/
151 /*************************************************************************/
152 /*************************************************************************/
155 t1_builder_init( T1_Builder builder
,
162 t1_builder_done( T1_Builder builder
);
165 t1_builder_check_points( T1_Builder builder
,
169 t1_builder_add_point( T1_Builder builder
,
175 t1_builder_add_point1( T1_Builder builder
,
180 t1_builder_add_contour( T1_Builder builder
);
184 t1_builder_start_point( T1_Builder builder
,
190 t1_builder_close_contour( T1_Builder builder
);
193 /*************************************************************************/
194 /*************************************************************************/
198 /*************************************************************************/
199 /*************************************************************************/
202 t1_decrypt( FT_Byte
* buffer
,
209 #endif /* __PSOBJS_H__ */