1 /***************************************************************************/
5 /* Auxiliary functions for PostScript fonts (specification). */
7 /* Copyright 1996-2001, 2002 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_SkipSpaces( PS_Parser parser
);
81 PS_Parser_SkipAlpha( PS_Parser parser
);
84 PS_Parser_ToToken( PS_Parser parser
,
88 PS_Parser_ToTokenArray( PS_Parser parser
,
91 FT_Int
* pnum_tokens
);
94 PS_Parser_LoadField( PS_Parser parser
,
101 PS_Parser_LoadFieldTable( PS_Parser parser
,
102 const T1_Field field
,
108 PS_Parser_ToInt( PS_Parser parser
);
112 PS_Parser_ToFixed( PS_Parser parser
,
117 PS_Parser_ToCoordArray( PS_Parser parser
,
122 PS_Parser_ToFixedArray( PS_Parser parser
,
129 PS_Parser_Init( PS_Parser parser
,
135 PS_Parser_Done( PS_Parser parser
);
138 /*************************************************************************/
139 /*************************************************************************/
141 /***** T1 BUILDER *****/
143 /*************************************************************************/
144 /*************************************************************************/
147 T1_Builder_Init( T1_Builder builder
,
154 T1_Builder_Done( T1_Builder builder
);
157 T1_Builder_Check_Points( T1_Builder builder
,
161 T1_Builder_Add_Point( T1_Builder builder
,
167 T1_Builder_Add_Point1( T1_Builder builder
,
172 T1_Builder_Add_Contour( T1_Builder builder
);
176 T1_Builder_Start_Point( T1_Builder builder
,
182 T1_Builder_Close_Contour( T1_Builder builder
);
185 /*************************************************************************/
186 /*************************************************************************/
190 /*************************************************************************/
191 /*************************************************************************/
194 T1_Decrypt( FT_Byte
* buffer
,
201 #endif /* __PSOBJS_H__ */