3 /* written 2011 by Werner Lemberg <wl@gnu.org> */
6 /* This test program is a wrapper for `TTF_autohint'. */
15 #include "ttfautohint.h"
29 fprintf(stderr
, "Usage: %s <in-font> <out-font>\n", argv
[0]);
33 in
= fopen(argv
[1], "rb");
36 fprintf(stderr
, "The following error occurred while opening font `%s':\n"
39 argv
[1], strerror(errno
));
43 out
= fopen(argv
[2], "wb");
46 fprintf(stderr
, "The following error occurred while opening font `%s':\n"
49 argv
[2], strerror(errno
));
53 error
= TTF_autohint(in
, out
);
56 fprintf(stderr
, "Error code `0x%02x' while autohinting font\n", error
);