84 |
|
|
85 |
typedef struct AF_PointRec_ |
typedef struct AF_PointRec_ |
86 |
{ |
{ |
87 |
AF_Flags flags; /* point flags used by hinter */ |
FT_UShort flags; /* point flags used by hinter */ |
88 |
|
FT_Char in_dir; /* direction of inwards vector */ |
89 |
|
FT_Char out_dir; /* direction of outwards vector */ |
90 |
|
|
91 |
FT_Pos ox, oy; /* original, scaled position */ |
FT_Pos ox, oy; /* original, scaled position */ |
92 |
FT_Short fx, fy; /* original, unscaled position (font units) */ |
FT_Short fx, fy; /* original, unscaled position (font units) */ |
93 |
FT_Pos x, y; /* current position */ |
FT_Pos x, y; /* current position */ |
94 |
FT_Pos u, v; /* current (x,y) or (y,x) depending on context */ |
FT_Pos u, v; /* current (x,y) or (y,x) depending on context */ |
95 |
|
|
|
FT_Char in_dir; /* direction of inwards vector */ |
|
|
FT_Char out_dir; /* direction of outwards vector */ |
|
|
|
|
96 |
AF_Point next; /* next point in contour */ |
AF_Point next; /* next point in contour */ |
97 |
AF_Point prev; /* previous point in contour */ |
AF_Point prev; /* previous point in contour */ |
98 |
|
|
101 |
|
|
102 |
typedef struct AF_SegmentRec_ |
typedef struct AF_SegmentRec_ |
103 |
{ |
{ |
104 |
AF_Edge_Flags flags; /* edge/segment flags for this segment */ |
FT_Byte flags; /* edge/segment flags for this segment */ |
105 |
FT_Char dir; /* segment direction */ |
FT_Char dir; /* segment direction */ |
106 |
FT_Short pos; /* position of segment */ |
FT_Short pos; /* position of segment */ |
107 |
FT_Short min_coord; /* minimum coordinate of segment */ |
FT_Short min_coord; /* minimum coordinate of segment */ |
148 |
typedef struct AF_AxisHintsRec_ |
typedef struct AF_AxisHintsRec_ |
149 |
{ |
{ |
150 |
FT_Int num_segments; |
FT_Int num_segments; |
151 |
|
FT_Int max_segments; |
152 |
AF_Segment segments; |
AF_Segment segments; |
153 |
|
|
154 |
FT_Int num_edges; |
FT_Int num_edges; |
155 |
|
FT_Int max_edges; |
156 |
AF_Edge edges; |
AF_Edge edges; |
157 |
|
|
158 |
AF_Direction major_dir; |
AF_Direction major_dir; |
207 |
FT_Pos dy ); |
FT_Pos dy ); |
208 |
|
|
209 |
|
|
210 |
|
FT_LOCAL( FT_Error ) |
211 |
|
af_axis_hints_new_segment( AF_AxisHints axis, |
212 |
|
FT_Memory memory, |
213 |
|
AF_Segment *asegment ); |
214 |
|
|
215 |
|
FT_LOCAL( FT_Error) |
216 |
|
af_axis_hints_new_edge( AF_AxisHints axis, |
217 |
|
FT_Int fpos, |
218 |
|
FT_Memory memory, |
219 |
|
AF_Edge *edge ); |
220 |
|
|
221 |
FT_LOCAL( void ) |
FT_LOCAL( void ) |
222 |
af_glyph_hints_init( AF_GlyphHints hints, |
af_glyph_hints_init( AF_GlyphHints hints, |
223 |
FT_Memory memory ); |
FT_Memory memory ); |