Add code to build a `gasp' table.
[ttfautohint.git] / src / ttfautohint.h
blobe219e3d8c115e3b00025e47310a52b8468e0c5fa
1 /* ttfautohint.h */
3 /* written 2011 by Werner Lemberg <wl@gnu.org> */
5 #ifndef __TTFAUTOHINT_H__
6 #define __TTFAUTOHINT_H__
8 #include <stdio.h>
11 /* Error type. */
13 typedef int TA_Error;
16 /* Error values in addition to the FT_Err_XXX constants from FreeType. */
18 #define TA_Err_Ok 0x00
19 #define TA_Err_Invalid_Stream_Write 0x5F
20 #define TA_Err_Hinter_Overflow 0xF0
24 * Read a TrueType font, remove existing bytecode (in the SFNT tables
25 * `prep', `fpgm', `cvt ', and `glyf'), and write a new TrueType font with
26 * new bytecode based on the autohinting of the FreeType library.
28 * It expects two file handles: `in', opened for binary reading, which
29 * points to the input TrueType font, and `out', opened for binary writing,
30 * which points to the output TrueType font.
34 TA_Error
35 TTF_autohint(FILE *in,
36 FILE *out);
38 #endif /* __TTFAUTOHINT_H__ */
40 /* end of ttfautohint.h */