Introduce point hints and provide framework for them.
[ttfautohint.git] / src / taloader.h
blob55ff1a4cd4de5a6479423e52f7b8617da36b60b5
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);
50 void
51 ta_loader_register_hints_recorder(TA_Loader loader,
52 TA_Hints_Recorder hints_recorder,
53 void *user);
55 #endif /* __TALOADER_H__ */
57 /* end of taloader.h */