xref: /inferno-os/libfreetype/pshalgo.h (revision 37da2899f40661e3e9631e497da8dc59b971cbd0)
1 /***************************************************************************/
2 /*                                                                         */
3 /*  pshalgo.h                                                              */
4 /*                                                                         */
5 /*    This header file defines the used hinting algorithm.                 */
6 /*                                                                         */
7 /*  Copyright 2001 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 /***************************************************************************/
17 
18 
19 #ifndef __PSHALGO_H__
20 #define __PSHALGO_H__
21 
22 FT_BEGIN_HEADER
23 
24 /* define to choose hinting algorithm */
25 #define PSH_ALGORITHM_3
26 
27 #if defined(PSH_ALGORITHM_1)
28 
29 #  include "pshalgo1.h"
30 #  define PS_HINTS_APPLY_FUNC  ps1_hints_apply
31 
32 #elif defined(PSH_ALGORITHM_2)
33 
34 #  include "pshalgo2.h"
35 #  define PS_HINTS_APPLY_FUNC  ps2_hints_apply
36 
37 #elif defined(PSH_ALGORITHM_3)
38 
39 #  include "pshalgo3.h"
40 #  define PS_HINTS_APPLY_FUNC  ps3_hints_apply
41 
42 #else
43 
44 #  error "invalid Postscript Hinter algorithm selection"
45 
46 #endif
47 
48 FT_END_HEADER
49 
50 #endif /* __PSHALGO_H__ */
51 
52 
53 /* END */
54