Some code cleanup.
[ttfautohint.git] / frontend / info.h
blob401a9fa7be90cb892b96e15689a569447f50c113
1 // info.h
3 // Copyright (C) 2012 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;
38 bool pre_hinting;
39 int latin_fallback;
40 bool symbol;
41 } Info_Data;
44 void
45 build_version_string(Info_Data* idata);
47 TA_Error
48 info(unsigned short platform_id,
49 unsigned short encoding_id,
50 unsigned short language_id,
51 unsigned short name_id,
52 unsigned short* str_len,
53 unsigned char** str,
54 void* user);
56 } // extern "C"
58 #endif // __INFO_H__
60 // end of info.h