1 /****************************************************************************
5 * Auto-fitter glyph loading routines (specification).
7 * Copyright (C) 2003-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.
30 * The autofitter module's (global) data structure to communicate with
31 * actual fonts. If necessary, `local' data like the current face, the
32 * current face's auto-hint data, or the current glyph's parameters
33 * relevant to auto-hinting are `swapped in'. Cf. functions like
34 * `af_loader_reset' and `af_loader_load_g'.
37 typedef struct AF_LoaderRec_
39 /* current face data */
41 AF_FaceGlobals globals;
43 /* current glyph data */
45 AF_StyleMetrics metrics;
47 FT_Matrix trans_matrix;
48 FT_Vector trans_delta;
51 /* we don't handle vertical phantom points */
53 } AF_LoaderRec, *AF_Loader;
57 af_loader_init( AF_Loader loader,
58 AF_GlyphHints hints );
62 af_loader_reset( AF_Loader loader,
68 af_loader_done( AF_Loader loader );
72 af_loader_load_glyph( AF_Loader loader,
76 FT_Int32 load_flags );
78 FT_LOCAL_DEF( FT_Int32 )
79 af_loader_compute_darkening( AF_Loader loader,
81 FT_Pos standard_width );
88 #endif /* AFLOADER_H_ */