1 /****************************************************************************
5 * Auto-fitter warping algorithm (specification).
7 * Copyright (C) 2006-2020 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.
26 #define AF_WARPER_SCALE
28 #define AF_WARPER_FLOOR( x ) ( (x) & ~FT_TYPEOF( 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;
50 #ifdef AF_CONFIG_OPTION_USE_WARPER
52 af_warper_compute( AF_Warper warper,
63 #endif /* AFWARP_H_ */