The BIG graph update
[rrdtool.git] / libraries / freetype-2.0.5 / include / ahhint.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  ahhint.h                                                               */
4 /*                                                                         */
5 /*    Glyph hinter (declaration).                                          */
6 /*                                                                         */
7 /*  Copyright 2000-2001 Catharon Productions Inc.                          */
8 /*  Author: David Turner                                                   */
9 /*                                                                         */
10 /*  This file is part of the Catharon Typography Project and shall only    */
11 /*  be used, modified, and distributed under the terms of the Catharon     */
12 /*  Open Source License that should come with this file under the name     */
13 /*  `CatharonLicense.txt'.  By continuing to use, modify, or distribute    */
14 /*  this file you indicate that you have read the license and              */
15 /*  understand and accept it fully.                                        */
16 /*                                                                         */
17 /*  Note that this license is compatible with the FreeType license.        */
18 /*                                                                         */
19 /***************************************************************************/
20
21
22 #ifndef __AHHINT_H__
23 #define __AHHINT_H__
24
25
26 #include <ft2build.h>
27 #include "ahglobal.h"
28
29
30 FT_BEGIN_HEADER
31
32
33 #define AH_HINT_DEFAULT        0
34 #define AH_HINT_NO_ALIGNMENT   1
35 #define AH_HINT_NO_HORZ_EDGES  0x20000L
36 #define AH_HINT_NO_VERT_EDGES  0x40000L
37
38
39   /* create a new empty hinter object */
40   FT_LOCAL FT_Error
41   ah_hinter_new( FT_Library   library,
42                  AH_Hinter**  ahinter );
43
44   /* Load a hinted glyph in the hinter */
45   FT_LOCAL FT_Error
46   ah_hinter_load_glyph( AH_Hinter*    hinter,
47                         FT_GlyphSlot  slot,
48                         FT_Size       size,
49                         FT_UInt       glyph_index,
50                         FT_Int        load_flags );
51
52   /* finalize a hinter object */
53   FT_LOCAL void
54   ah_hinter_done( AH_Hinter*  hinter );
55
56   FT_LOCAL void
57   ah_hinter_done_face_globals( AH_Face_Globals*  globals );
58
59   FT_LOCAL void
60   ah_hinter_get_global_hints( AH_Hinter*  hinter,
61                               FT_Face     face,
62                               void**      global_hints,
63                               long*       global_len );
64
65   FT_LOCAL void
66   ah_hinter_done_global_hints( AH_Hinter*  hinter,
67                                void*       global_hints );
68
69
70 FT_END_HEADER
71
72 #endif /* __AHHINT_H__ */
73
74
75 /* END */