Set bit 2 and 4 of `flags' field in `head' table.
[ttfautohint.git] / lib / taloader.h
bloba92b9d3973424aa8f52c9b32c821383f0a7a6e93
1 /* taloader.h */
3 /*
4 * Copyright (C) 2011-2016 by Werner Lemberg.
6 * This file is part of the ttfautohint library, and may only be used,
7 * modified, and distributed under the terms given in `COPYING'. By
8 * continuing to use, modify, or distribute this file you indicate that you
9 * have read `COPYING' and understand and accept it fully.
11 * The file `COPYING' mentioned in the previous paragraph is distributed
12 * with the ttfautohint library.
16 /* originally file `afloader.h' (2011-Mar-28) from FreeType */
18 /* heavily modified 2011 by Werner Lemberg <wl@gnu.org> */
20 #ifndef TALOADER_H_
21 #define TALOADER_H_
23 #include "tahints.h"
24 #include "tagloadr.h"
27 typedef struct FONT_ FONT;
29 typedef struct TA_LoaderRec_
31 /* current face data */
32 FT_Face face;
33 TA_FaceGlobals globals;
35 /* current glyph data */
36 TA_GlyphLoader gloader;
37 TA_GlyphHintsRec hints;
38 TA_StyleMetrics metrics;
39 FT_Bool transformed;
40 FT_Matrix trans_matrix;
41 FT_Vector trans_delta;
42 FT_Vector pp1;
43 FT_Vector pp2;
44 /* we don't handle vertical phantom points */
45 } TA_LoaderRec, *TA_Loader;
48 FT_Error
49 ta_loader_init(FONT* font);
52 FT_Error
53 ta_loader_reset(FONT* font,
54 FT_Face face);
57 void
58 ta_loader_done(FONT* font);
61 FT_Error
62 ta_loader_load_glyph(FONT* font,
63 FT_Face face,
64 FT_UInt gindex,
65 FT_Int32 load_flags);
68 void
69 ta_loader_register_hints_recorder(TA_Loader loader,
70 TA_Hints_Recorder hints_recorder,
71 void* user);
73 #endif /* TALOADER_H_ */
75 /* end of taloader.h */