Simplify CVT macros.
[ttfautohint.git] / src / taloader.h
blobe8ecb568ab2d39110cdbaf3b77a73712c4c5ca53
1 /* taloader.h */
3 /* originally file `afloader.h' (2011-Mar-28) from FreeType */
5 /* heavily modified 2011 by Werner Lemberg <wl@gnu.org> */
7 #ifndef __TALOADER_H__
8 #define __TALOADER_H__
10 #include "tahints.h"
11 #include "taglobal.h"
12 #include "tagloadr.h"
15 typedef struct TA_LoaderRec_
17 FT_Face face; /* current face */
18 TA_FaceGlobals globals; /* current face globals */
19 TA_GlyphLoader gloader; /* glyph loader */
20 TA_GlyphHintsRec hints;
21 TA_ScriptMetrics metrics;
22 FT_Bool transformed;
23 FT_Matrix trans_matrix;
24 FT_Vector trans_delta;
25 FT_Vector pp1;
26 FT_Vector pp2;
27 /* we don't handle vertical phantom points */
28 } TA_LoaderRec, *TA_Loader;
31 FT_Error
32 ta_loader_init(TA_Loader loader);
35 FT_Error
36 ta_loader_reset(TA_Loader loader,
37 FT_Face face);
39 void
40 ta_loader_done(TA_Loader loader);
43 FT_Error
44 ta_loader_load_glyph(TA_Loader loader,
45 FT_Face face,
46 FT_UInt gindex,
47 FT_UInt32 load_flags);
49 #endif /* __TALOADER_H__ */
51 /* end of taloader.h */