Fix order of header inclusion.
[ttfautohint.git] / frontend / info.h
blobbe04d0c1de19afec15aa06719ec1e064010786ed
1 // info.h
3 // Copyright (C) 2012-2014 by Werner Lemberg.
4 //
5 // This file is part of the ttfautohint library, and may only be used,
6 // modified, and distributed under the terms given in `COPYING'. By
7 // continuing to use, modify, or distribute this file you indicate that you
8 // have read `COPYING' and understand and accept it fully.
9 //
10 // The file `COPYING' mentioned in the previous paragraph is distributed
11 // with the ttfautohint library.
14 #ifndef __INFO_H__
15 #define __INFO_H__
17 #include <ttfautohint.h>
19 extern "C" {
21 typedef struct Info_Data_
23 unsigned char* data;
24 unsigned char* data_wide;
25 unsigned short data_len;
26 unsigned short data_wide_len;
28 int hinting_range_min;
29 int hinting_range_max;
30 int hinting_limit;
32 bool gray_strong_stem_width;
33 bool gdi_cleartype_strong_stem_width;
34 bool dw_cleartype_strong_stem_width;
36 int increase_x_height;
37 const char* x_height_snapping_exceptions_string;
38 int fallback_stem_width;
40 bool windows_compatibility;
41 bool adjust_subglyphs;
42 bool hint_composites;
43 char default_script[5];
44 char fallback_script[5];
45 bool symbol;
46 bool dehint;
48 const char* deltas_name;
49 } Info_Data;
52 int
53 build_version_string(Info_Data* idata);
55 TA_Error
56 info(unsigned short platform_id,
57 unsigned short encoding_id,
58 unsigned short language_id,
59 unsigned short name_id,
60 unsigned short* str_len,
61 unsigned char** str,
62 void* user);
64 } // extern "C"
66 #endif // __INFO_H__
68 // end of info.h