1 /***************************************************************************/
5 /* Auto-fitter warping algorithm (specification). */
7 /* Copyright 2006, 2007 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
26 #define AF_WARPER_SCALE
28 #define AF_WARPER_FLOOR( x ) ( (x) & ~63 )
29 #define AF_WARPER_CEIL( x ) AF_WARPER_FLOOR( (x) + 63 )
32 typedef FT_Int32 AF_WarpScore
;
34 typedef struct AF_WarperRec_
40 FT_Pos w0
, wmin
, wmax
;
44 AF_WarpScore best_score
;
45 AF_WarpScore best_distort
;
47 } AF_WarperRec
, *AF_Warper
;
51 af_warper_compute( AF_Warper warper
,
61 #endif /* __AFWARP_H__ */