RIP, Vernon...
[ttfautohint.git] / frontend / info.h
blob0cecb5548c304d944838b9322e16d9b79bc81d8e
1 // info.h
3 // Copyright (C) 2012-2016 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 <stdbool.h> // for llrb.h
19 #include <llrb.h>
21 extern "C" {
23 typedef struct Info_Data_
25 bool no_info;
26 bool detailed_info;
27 unsigned char* info_string;
28 unsigned char* info_string_wide;
29 unsigned short info_string_len;
30 unsigned short info_string_wide_len;
32 const char* family_suffix;
33 void* family_data_head; // a red-black tree
35 int hinting_range_min;
36 int hinting_range_max;
37 int hinting_limit;
39 bool gray_strong_stem_width;
40 bool gdi_cleartype_strong_stem_width;
41 bool dw_cleartype_strong_stem_width;
43 int increase_x_height;
44 const char* x_height_snapping_exceptions_string;
45 int fallback_stem_width;
47 bool windows_compatibility;
48 bool adjust_subglyphs;
49 bool hint_composites;
50 char default_script[5];
51 char fallback_script[5];
52 bool fallback_scaling;
53 bool symbol;
54 bool dehint;
55 bool TTFA_info;
57 const char* control_name;
58 } Info_Data;
61 char*
62 check_family_suffix(const char* s);
64 int
65 build_version_string(Info_Data* idata);
67 int
68 info(unsigned short platform_id,
69 unsigned short encoding_id,
70 unsigned short language_id,
71 unsigned short name_id,
72 unsigned short* str_len,
73 unsigned char** str,
74 void* user);
76 int
77 info_post(void* user);
79 } // extern "C"
81 #endif // INFO_H_
83 // end of info.h