1 /***************************************************************************/
2 /*                                                                         */
3 /*  afloader.h                                                             */
4 /*                                                                         */
5 /*    Auto-fitter glyph loading routines (specification).                  */
6 /*                                                                         */
7 /*  Copyright 2003, 2004, 2005 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 __AF_LOADER_H__
20 #define __AF_LOADER_H__
21 
22 #include "afhints.h"
23 #include "afglobal.h"
24 
25 
26 FT_BEGIN_HEADER
27 
28   typedef struct AF_LoaderRec_
29   {
30     FT_Face           face;           /* current face */
31     AF_FaceGlobals    globals;        /* current face globals */
32     FT_GlyphLoader    gloader;        /* glyph loader */
33     AF_GlyphHintsRec  hints;
34     AF_ScriptMetrics  metrics;
35     FT_Bool           transformed;
36     FT_Matrix         trans_matrix;
37     FT_Vector         trans_delta;
38     FT_Vector         pp1;
39     FT_Vector         pp2;
40     /* we don't handle vertical phantom points */
41 
42   } AF_LoaderRec, *AF_Loader;
43 
44 
45   FT_LOCAL( FT_Error )
46   af_loader_init( AF_Loader  loader,
47                   FT_Memory  memory );
48 
49 
50   FT_LOCAL( FT_Error )
51   af_loader_reset( AF_Loader  loader,
52                    FT_Face    face );
53 
54 
55   FT_LOCAL( void )
56   af_loader_done( AF_Loader  loader );
57 
58 
59   FT_LOCAL( FT_Error )
60   af_loader_load_glyph( AF_Loader  loader,
61                         FT_Face    face,
62                         FT_UInt    gindex,
63                         FT_UInt32  load_flags );
64 
65 /* */
66 
67 
68 FT_END_HEADER
69 
70 #endif /* __AF_LOADER_H__ */
71 
72 
73 /* END */
74