Bringing apdf from vendor into main branch.
[AROS-Contrib.git] / apdf / freetype2 / autohint / ahglyph.h
blob8089f41925f3d8c02df43dd6b63dd17f47a68698
1 /***************************************************************************/
2 /* */
3 /* ahglyph.h */
4 /* */
5 /* Routines used to load and analyze a given glyph before hinting */
6 /* (specification). */
7 /* */
8 /* Copyright 2000-2001, 2002 Catharon Productions Inc. */
9 /* Author: David Turner */
10 /* */
11 /* This file is part of the Catharon Typography Project and shall only */
12 /* be used, modified, and distributed under the terms of the Catharon */
13 /* Open Source License that should come with this file under the name */
14 /* `CatharonLicense.txt'. By continuing to use, modify, or distribute */
15 /* this file you indicate that you have read the license and */
16 /* understand and accept it fully. */
17 /* */
18 /* Note that this license is compatible with the FreeType license. */
19 /* */
20 /***************************************************************************/
23 #ifndef __AHGLYPH_H__
24 #define __AHGLYPH_H__
27 #include <ft2build.h>
28 #include "ahtypes.h"
31 FT_BEGIN_HEADER
34 typedef enum AH_UV_
36 ah_uv_fxy,
37 ah_uv_fyx,
38 ah_uv_oxy,
39 ah_uv_oyx,
40 ah_uv_ox,
41 ah_uv_oy,
42 ah_uv_yx,
43 ah_uv_xy /* should always be last! */
45 } AH_UV;
48 FT_LOCAL( void )
49 ah_setup_uv( AH_Outline* outline,
50 AH_UV source );
53 /* AH_Outline functions - they should be typically called in this order */
55 FT_LOCAL( FT_Error )
56 ah_outline_new( FT_Memory memory,
57 AH_Outline** aoutline );
59 FT_LOCAL( FT_Error )
60 ah_outline_load( AH_Outline* outline,
61 FT_Face face );
63 FT_LOCAL( void )
64 ah_outline_compute_segments( AH_Outline* outline );
66 FT_LOCAL( void )
67 ah_outline_link_segments( AH_Outline* outline );
69 FT_LOCAL( void )
70 ah_outline_detect_features( AH_Outline* outline );
72 FT_LOCAL( void )
73 ah_outline_compute_blue_edges( AH_Outline* outline,
74 AH_Face_Globals* globals );
76 FT_LOCAL( void )
77 ah_outline_scale_blue_edges( AH_Outline* outline,
78 AH_Face_Globals* globals );
80 FT_LOCAL( void )
81 ah_outline_save( AH_Outline* outline,
82 AH_Loader loader );
84 FT_LOCAL( void )
85 ah_outline_done( AH_Outline* outline );
88 FT_END_HEADER
90 #endif /* __AHGLYPH_H__ */
93 /* END */