Fix OTS warning about `maxp.maxSizeOfInstructions`.
[ttfautohint.git] / lib / tashaper.h
blobda924a07079e4176b9b98d044e5e7ab714d6c54b
1 /* tashaper.h */
3 /*
4 * Copyright (C) 2014-2022 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 `hbshim.h' (2014-Jan-11) from FreeType */
18 /* heavily modified 2014 by Werner Lemberg <wl@gnu.org> */
20 #ifndef TASHAPER_H_
21 #define TASHAPER_H_
24 #include <ft2build.h>
25 #include FT_FREETYPE_H
27 #include <hb.h>
28 #include <hb-ot.h>
29 #include <hb-ft.h>
31 #include "ta.h"
34 /* in file `tafeature.c' */
35 extern const hb_tag_t feature_tags[];
36 extern size_t feature_tags_size;
39 FT_Error
40 ta_shaper_get_coverage(TA_FaceGlobals globals,
41 TA_StyleClass style_class,
42 FT_UShort* gstyles,
43 FT_UInt* sample_glyph,
44 FT_Bool default_script);
46 void*
47 ta_shaper_buf_create(FT_Face face);
49 void
50 ta_shaper_buf_destroy(FT_Face face,
51 void* buf);
53 const char*
54 ta_shaper_get_cluster(const char* p,
55 TA_StyleMetrics metrics,
56 void* buf_,
57 unsigned int* count);
59 FT_ULong
60 ta_shaper_get_elem(TA_StyleMetrics metrics,
61 void* buf_,
62 unsigned int idx,
63 FT_Long* x_advance,
64 FT_Long* y_offset);
66 #endif /* TASHAPER_H_ */
68 /* end of tashaper.h */