Synchronize with FreeType.
[ttfautohint.git] / frontend / info.h
blob3bb845c4a931388e65e1b9bdfd5dbf1ecaf9012e
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>
18 #include <numberset.h>
20 extern "C" {
22 typedef struct Info_Data_
24 unsigned char* data;
25 unsigned char* data_wide;
26 unsigned short data_len;
27 unsigned short data_wide_len;
29 int hinting_range_min;
30 int hinting_range_max;
31 int hinting_limit;
33 bool gray_strong_stem_width;
34 bool gdi_cleartype_strong_stem_width;
35 bool dw_cleartype_strong_stem_width;
37 int increase_x_height;
38 number_range* x_height_snapping_exceptions;
40 bool windows_compatibility;
41 bool pre_hinting;
42 bool hint_composites;
43 char default_script[5];
44 char fallback_script[5];
45 bool symbol;
46 bool dehint;
47 } Info_Data;
50 int
51 build_version_string(Info_Data* idata);
53 TA_Error
54 info(unsigned short platform_id,
55 unsigned short encoding_id,
56 unsigned short language_id,
57 unsigned short name_id,
58 unsigned short* str_len,
59 unsigned char** str,
60 void* user);
62 } // extern "C"
64 #endif // __INFO_H__
66 // end of info.h