Bringing apdf from vendor into main branch.
[AROS-Contrib.git] / apdf / freetype2 / psaux / psobjs.h
blobf748085f3fc415f97a94e51158238c526797a8a7
1 /***************************************************************************/
2 /* */
3 /* psobjs.h */
4 /* */
5 /* Auxiliary functions for PostScript fonts (specification). */
6 /* */
7 /* Copyright 1996-2001, 2002 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 /***************************************************************************/
19 #ifndef __PSOBJS_H__
20 #define __PSOBJS_H__
23 #include <ft2build.h>
24 #include FT_INTERNAL_POSTSCRIPT_AUX_H
27 FT_BEGIN_HEADER
30 /*************************************************************************/
31 /*************************************************************************/
32 /***** *****/
33 /***** T1_TABLE *****/
34 /***** *****/
35 /*************************************************************************/
36 /*************************************************************************/
39 FT_CALLBACK_TABLE
40 const PS_Table_FuncsRec ps_table_funcs;
42 FT_CALLBACK_TABLE
43 const PS_Parser_FuncsRec ps_parser_funcs;
45 FT_CALLBACK_TABLE
46 const T1_Builder_FuncsRec t1_builder_funcs;
49 FT_LOCAL( FT_Error )
50 PS_Table_New( PS_Table table,
51 FT_Int count,
52 FT_Memory memory );
54 FT_LOCAL( FT_Error )
55 PS_Table_Add( PS_Table table,
56 FT_Int idx,
57 void* object,
58 FT_Int length );
60 FT_LOCAL( void )
61 PS_Table_Done( PS_Table table );
64 FT_LOCAL( void )
65 PS_Table_Release( PS_Table table );
68 /*************************************************************************/
69 /*************************************************************************/
70 /***** *****/
71 /***** T1 PARSER *****/
72 /***** *****/
73 /*************************************************************************/
74 /*************************************************************************/
77 FT_LOCAL( void )
78 PS_Parser_SkipSpaces( PS_Parser parser );
80 FT_LOCAL( void )
81 PS_Parser_SkipAlpha( PS_Parser parser );
83 FT_LOCAL( void )
84 PS_Parser_ToToken( PS_Parser parser,
85 T1_Token token );
87 FT_LOCAL( void )
88 PS_Parser_ToTokenArray( PS_Parser parser,
89 T1_Token tokens,
90 FT_UInt max_tokens,
91 FT_Int* pnum_tokens );
93 FT_LOCAL( FT_Error )
94 PS_Parser_LoadField( PS_Parser parser,
95 const T1_Field field,
96 void** objects,
97 FT_UInt max_objects,
98 FT_ULong* pflags );
100 FT_LOCAL( FT_Error )
101 PS_Parser_LoadFieldTable( PS_Parser parser,
102 const T1_Field field,
103 void** objects,
104 FT_UInt max_objects,
105 FT_ULong* pflags );
107 FT_LOCAL( FT_Long )
108 PS_Parser_ToInt( PS_Parser parser );
111 FT_LOCAL( FT_Fixed )
112 PS_Parser_ToFixed( PS_Parser parser,
113 FT_Int power_ten );
116 FT_LOCAL( FT_Int )
117 PS_Parser_ToCoordArray( PS_Parser parser,
118 FT_Int max_coords,
119 FT_Short* coords );
121 FT_LOCAL( FT_Int )
122 PS_Parser_ToFixedArray( PS_Parser parser,
123 FT_Int max_values,
124 FT_Fixed* values,
125 FT_Int power_ten );
128 FT_LOCAL( void )
129 PS_Parser_Init( PS_Parser parser,
130 FT_Byte* base,
131 FT_Byte* limit,
132 FT_Memory memory );
134 FT_LOCAL( void )
135 PS_Parser_Done( PS_Parser parser );
138 /*************************************************************************/
139 /*************************************************************************/
140 /***** *****/
141 /***** T1 BUILDER *****/
142 /***** *****/
143 /*************************************************************************/
144 /*************************************************************************/
146 FT_LOCAL( void )
147 T1_Builder_Init( T1_Builder builder,
148 FT_Face face,
149 FT_Size size,
150 FT_GlyphSlot glyph,
151 FT_Bool hinting );
153 FT_LOCAL( void )
154 T1_Builder_Done( T1_Builder builder );
156 FT_LOCAL( FT_Error )
157 T1_Builder_Check_Points( T1_Builder builder,
158 FT_Int count );
160 FT_LOCAL( void )
161 T1_Builder_Add_Point( T1_Builder builder,
162 FT_Pos x,
163 FT_Pos y,
164 FT_Byte flag );
166 FT_LOCAL( FT_Error )
167 T1_Builder_Add_Point1( T1_Builder builder,
168 FT_Pos x,
169 FT_Pos y );
171 FT_LOCAL( FT_Error )
172 T1_Builder_Add_Contour( T1_Builder builder );
175 FT_LOCAL( FT_Error )
176 T1_Builder_Start_Point( T1_Builder builder,
177 FT_Pos x,
178 FT_Pos y );
181 FT_LOCAL( void )
182 T1_Builder_Close_Contour( T1_Builder builder );
185 /*************************************************************************/
186 /*************************************************************************/
187 /***** *****/
188 /***** OTHER *****/
189 /***** *****/
190 /*************************************************************************/
191 /*************************************************************************/
193 FT_LOCAL( void )
194 T1_Decrypt( FT_Byte* buffer,
195 FT_Offset length,
196 FT_UShort seed );
199 FT_END_HEADER
201 #endif /* __PSOBJS_H__ */
204 /* END */