1 /***************************************************************************/
5 /* Auto-fitter glyph loading routines (specification). */
7 /* Copyright 2003-2005, 2011-2013 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 /***************************************************************************/
19 #ifndef __AFLOADER_H__
20 #define __AFLOADER_H__
28 typedef struct AF_ModuleRec_* AF_Module;
31 * The autofitter module's (global) data structure to communicate with
32 * actual fonts. If necessary, `local' data like the current face, the
33 * current face's auto-hint data, or the current glyph's parameters
34 * relevant to auto-hinting are `swapped in'. Cf. functions like
35 * `af_loader_reset' and `af_loader_load_g'.
38 typedef struct AF_LoaderRec_
40 /* current face data */
42 AF_FaceGlobals globals;
44 /* current glyph data */
45 FT_GlyphLoader gloader;
46 AF_GlyphHintsRec hints;
47 AF_StyleMetrics metrics;
49 FT_Matrix trans_matrix;
50 FT_Vector trans_delta;
53 /* we don't handle vertical phantom points */
55 } AF_LoaderRec, *AF_Loader;
59 af_loader_init( AF_Module module );
63 af_loader_reset( AF_Module module,
68 af_loader_done( AF_Module module );
72 af_loader_load_glyph( AF_Module module,
75 FT_Int32 load_flags );
82 #endif /* __AFLOADER_H__ */