1 | // FeatureType::Ligatures |
2 | pub const COMMON_LIGATURES_ON: u8 = 2; |
3 | pub const COMMON_LIGATURES_OFF: u8 = 3; |
4 | pub const RARE_LIGATURES_ON: u8 = 4; |
5 | pub const RARE_LIGATURES_OFF: u8 = 5; |
6 | pub const CONTEXTUAL_LIGATURES_ON: u8 = 18; |
7 | pub const CONTEXTUAL_LIGATURES_OFF: u8 = 19; |
8 | pub const HISTORICAL_LIGATURES_ON: u8 = 20; |
9 | pub const HISTORICAL_LIGATURES_OFF: u8 = 21; |
10 | |
11 | // FeatureType::LetterCase |
12 | pub const SMALL_CAPS: u8 = 3; // deprecated |
13 | |
14 | // FeatureType::VerticalSubstitution |
15 | pub const SUBSTITUTE_VERTICAL_FORMS_ON: u8 = 0; |
16 | pub const SUBSTITUTE_VERTICAL_FORMS_OFF: u8 = 1; |
17 | |
18 | // FeatureType::NumberSpacing |
19 | pub const MONOSPACED_NUMBERS: u8 = 0; |
20 | pub const PROPORTIONAL_NUMBERS: u8 = 1; |
21 | |
22 | // FeatureType::VerticalPosition |
23 | pub const NORMAL_POSITION: u8 = 0; |
24 | pub const SUPERIORS: u8 = 1; |
25 | pub const INFERIORS: u8 = 2; |
26 | pub const ORDINALS: u8 = 3; |
27 | pub const SCIENTIFIC_INFERIORS: u8 = 4; |
28 | |
29 | // FeatureType::Fractions |
30 | pub const NO_FRACTIONS: u8 = 0; |
31 | pub const VERTICAL_FRACTIONS: u8 = 1; |
32 | pub const DIAGONAL_FRACTIONS: u8 = 2; |
33 | |
34 | // FeatureType::TypographicExtras |
35 | pub const SLASHED_ZERO_ON: u8 = 4; |
36 | pub const SLASHED_ZERO_OFF: u8 = 5; |
37 | |
38 | // FeatureType::MathematicalExtras |
39 | pub const MATHEMATICAL_GREEK_ON: u8 = 10; |
40 | pub const MATHEMATICAL_GREEK_OFF: u8 = 11; |
41 | |
42 | // FeatureType::StyleOptions |
43 | pub const NO_STYLE_OPTIONS: u8 = 0; |
44 | pub const TITLING_CAPS: u8 = 4; |
45 | |
46 | // FeatureType::CharacterShape |
47 | pub const TRADITIONAL_CHARACTERS: u8 = 0; |
48 | pub const SIMPLIFIED_CHARACTERS: u8 = 1; |
49 | pub const JIS1978_CHARACTERS: u8 = 2; |
50 | pub const JIS1983_CHARACTERS: u8 = 3; |
51 | pub const JIS1990_CHARACTERS: u8 = 4; |
52 | pub const EXPERT_CHARACTERS: u8 = 10; |
53 | pub const JIS2004_CHARACTERS: u8 = 11; |
54 | pub const HOJO_CHARACTERS: u8 = 12; |
55 | pub const NLCCHARACTERS: u8 = 13; |
56 | pub const TRADITIONAL_NAMES_CHARACTERS: u8 = 14; |
57 | |
58 | // FeatureType::NumberCase |
59 | pub const LOWER_CASE_NUMBERS: u8 = 0; |
60 | pub const UPPER_CASE_NUMBERS: u8 = 1; |
61 | |
62 | // FeatureType::TextSpacing |
63 | pub const PROPORTIONAL_TEXT: u8 = 0; |
64 | pub const MONOSPACED_TEXT: u8 = 1; |
65 | pub const HALF_WIDTH_TEXT: u8 = 2; |
66 | pub const THIRD_WIDTH_TEXT: u8 = 3; |
67 | pub const QUARTER_WIDTH_TEXT: u8 = 4; |
68 | pub const ALT_PROPORTIONAL_TEXT: u8 = 5; |
69 | pub const ALT_HALF_WIDTH_TEXT: u8 = 6; |
70 | |
71 | // FeatureType::Transliteration |
72 | pub const NO_TRANSLITERATION: u8 = 0; |
73 | pub const HANJA_TO_HANGUL: u8 = 1; |
74 | |
75 | // FeatureType::RubyKana |
76 | pub const RUBY_KANA_ON: u8 = 2; |
77 | pub const RUBY_KANA_OFF: u8 = 3; |
78 | |
79 | // FeatureType::ItalicCjkRoman |
80 | pub const CJK_ITALIC_ROMAN_ON: u8 = 2; |
81 | pub const CJK_ITALIC_ROMAN_OFF: u8 = 3; |
82 | |
83 | // FeatureType::CaseSensitiveLayout |
84 | pub const CASE_SENSITIVE_LAYOUT_ON: u8 = 0; |
85 | pub const CASE_SENSITIVE_LAYOUT_OFF: u8 = 1; |
86 | pub const CASE_SENSITIVE_SPACING_ON: u8 = 2; |
87 | pub const CASE_SENSITIVE_SPACING_OFF: u8 = 3; |
88 | |
89 | // FeatureType::AlternateKana |
90 | pub const ALTERNATE_HORIZ_KANA_ON: u8 = 0; |
91 | pub const ALTERNATE_HORIZ_KANA_OFF: u8 = 1; |
92 | pub const ALTERNATE_VERT_KANA_ON: u8 = 2; |
93 | pub const ALTERNATE_VERT_KANA_OFF: u8 = 3; |
94 | |
95 | // FeatureType::StylisticAlternatives |
96 | pub const STYLISTIC_ALT_ONE_ON: u8 = 2; |
97 | pub const STYLISTIC_ALT_ONE_OFF: u8 = 3; |
98 | pub const STYLISTIC_ALT_TWO_ON: u8 = 4; |
99 | pub const STYLISTIC_ALT_TWO_OFF: u8 = 5; |
100 | pub const STYLISTIC_ALT_THREE_ON: u8 = 6; |
101 | pub const STYLISTIC_ALT_THREE_OFF: u8 = 7; |
102 | pub const STYLISTIC_ALT_FOUR_ON: u8 = 8; |
103 | pub const STYLISTIC_ALT_FOUR_OFF: u8 = 9; |
104 | pub const STYLISTIC_ALT_FIVE_ON: u8 = 10; |
105 | pub const STYLISTIC_ALT_FIVE_OFF: u8 = 11; |
106 | pub const STYLISTIC_ALT_SIX_ON: u8 = 12; |
107 | pub const STYLISTIC_ALT_SIX_OFF: u8 = 13; |
108 | pub const STYLISTIC_ALT_SEVEN_ON: u8 = 14; |
109 | pub const STYLISTIC_ALT_SEVEN_OFF: u8 = 15; |
110 | pub const STYLISTIC_ALT_EIGHT_ON: u8 = 16; |
111 | pub const STYLISTIC_ALT_EIGHT_OFF: u8 = 17; |
112 | pub const STYLISTIC_ALT_NINE_ON: u8 = 18; |
113 | pub const STYLISTIC_ALT_NINE_OFF: u8 = 19; |
114 | pub const STYLISTIC_ALT_TEN_ON: u8 = 20; |
115 | pub const STYLISTIC_ALT_TEN_OFF: u8 = 21; |
116 | pub const STYLISTIC_ALT_ELEVEN_ON: u8 = 22; |
117 | pub const STYLISTIC_ALT_ELEVEN_OFF: u8 = 23; |
118 | pub const STYLISTIC_ALT_TWELVE_ON: u8 = 24; |
119 | pub const STYLISTIC_ALT_TWELVE_OFF: u8 = 25; |
120 | pub const STYLISTIC_ALT_THIRTEEN_ON: u8 = 26; |
121 | pub const STYLISTIC_ALT_THIRTEEN_OFF: u8 = 27; |
122 | pub const STYLISTIC_ALT_FOURTEEN_ON: u8 = 28; |
123 | pub const STYLISTIC_ALT_FOURTEEN_OFF: u8 = 29; |
124 | pub const STYLISTIC_ALT_FIFTEEN_ON: u8 = 30; |
125 | pub const STYLISTIC_ALT_FIFTEEN_OFF: u8 = 31; |
126 | pub const STYLISTIC_ALT_SIXTEEN_ON: u8 = 32; |
127 | pub const STYLISTIC_ALT_SIXTEEN_OFF: u8 = 33; |
128 | pub const STYLISTIC_ALT_SEVENTEEN_ON: u8 = 34; |
129 | pub const STYLISTIC_ALT_SEVENTEEN_OFF: u8 = 35; |
130 | pub const STYLISTIC_ALT_EIGHTEEN_ON: u8 = 36; |
131 | pub const STYLISTIC_ALT_EIGHTEEN_OFF: u8 = 37; |
132 | pub const STYLISTIC_ALT_NINETEEN_ON: u8 = 38; |
133 | pub const STYLISTIC_ALT_NINETEEN_OFF: u8 = 39; |
134 | pub const STYLISTIC_ALT_TWENTY_ON: u8 = 40; |
135 | pub const STYLISTIC_ALT_TWENTY_OFF: u8 = 41; |
136 | |
137 | // FeatureType::ContextualAlternatives |
138 | pub const CONTEXTUAL_ALTERNATES_ON: u8 = 0; |
139 | pub const CONTEXTUAL_ALTERNATES_OFF: u8 = 1; |
140 | pub const SWASH_ALTERNATES_ON: u8 = 2; |
141 | pub const SWASH_ALTERNATES_OFF: u8 = 3; |
142 | pub const CONTEXTUAL_SWASH_ALTERNATES_ON: u8 = 4; |
143 | pub const CONTEXTUAL_SWASH_ALTERNATES_OFF: u8 = 5; |
144 | |
145 | // FeatureType::LowerCase |
146 | pub const DEFAULT_LOWER_CASE: u8 = 0; |
147 | pub const LOWER_CASE_SMALL_CAPS: u8 = 1; |
148 | pub const LOWER_CASE_PETITE_CAPS: u8 = 2; |
149 | |
150 | // FeatureType::UpperCase |
151 | pub const DEFAULT_UPPER_CASE: u8 = 0; |
152 | pub const UPPER_CASE_SMALL_CAPS: u8 = 1; |
153 | pub const UPPER_CASE_PETITE_CAPS: u8 = 2; |
154 | |