Initialize properties of `globals' object.
[ttfautohint.git] / frontend / info.h
blob4851cd8729af8bbe3fd86f9c52e2c9be5ae59418
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 windows_compatibility;
39 bool pre_hinting;
40 bool hint_with_components;
41 int latin_fallback;
42 bool symbol;
43 } Info_Data;
46 void
47 build_version_string(Info_Data* idata);
49 TA_Error
50 info(unsigned short platform_id,
51 unsigned short encoding_id,
52 unsigned short language_id,
53 unsigned short name_id,
54 unsigned short* str_len,
55 unsigned char** str,
56 void* user);
58 } // extern "C"
60 #endif // __INFO_H__
62 // end of info.h