1 /* 2 * Copyright © 2018 Ebrahim Byagowi 3 * 4 * This is part of HarfBuzz, a text shaping library. 5 * 6 * Permission is hereby granted, without written agreement and without 7 * license or royalty fees, to use, copy, modify, and distribute this 8 * software and its documentation for any purpose, provided that the 9 * above copyright notice and the following two paragraphs appear in 10 * all copies of this software. 11 * 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 16 * DAMAGE. 17 * 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 23 */ 24 25 #ifndef HB_AAT_H_IN 26 #error "Include <hb-aat.h> instead." 27 #endif 28 29 #ifndef HB_AAT_LAYOUT_H 30 #define HB_AAT_LAYOUT_H 31 32 #include "hb.h" 33 34 #include "hb-ot.h" 35 36 HB_BEGIN_DECLS 37 38 /** 39 * hb_aat_layout_feature_type_t: 40 * 41 * 42 * Since: 2.2.0 43 */ 44 typedef enum 45 { 46 HB_AAT_LAYOUT_FEATURE_TYPE_INVALID = 0xFFFF, 47 48 HB_AAT_LAYOUT_FEATURE_TYPE_ALL_TYPOGRAPHIC = 0, 49 HB_AAT_LAYOUT_FEATURE_TYPE_LIGATURES = 1, 50 HB_AAT_LAYOUT_FEATURE_TYPE_CURISVE_CONNECTION = 2, 51 HB_AAT_LAYOUT_FEATURE_TYPE_LETTER_CASE = 3, 52 HB_AAT_LAYOUT_FEATURE_TYPE_VERTICAL_SUBSTITUTION = 4, 53 HB_AAT_LAYOUT_FEATURE_TYPE_LINGUISTIC_REARRANGEMENT = 5, 54 HB_AAT_LAYOUT_FEATURE_TYPE_NUMBER_SPACING = 6, 55 HB_AAT_LAYOUT_FEATURE_TYPE_SMART_SWASH_TYPE = 8, 56 HB_AAT_LAYOUT_FEATURE_TYPE_DIACRITICS_TYPE = 9, 57 HB_AAT_LAYOUT_FEATURE_TYPE_VERTICAL_POSITION = 10, 58 HB_AAT_LAYOUT_FEATURE_TYPE_FRACTIONS = 11, 59 HB_AAT_LAYOUT_FEATURE_TYPE_OVERLAPPING_CHARACTERS_TYPE = 13, 60 HB_AAT_LAYOUT_FEATURE_TYPE_TYPOGRAPHIC_EXTRAS = 14, 61 HB_AAT_LAYOUT_FEATURE_TYPE_MATHEMATICAL_EXTRAS = 15, 62 HB_AAT_LAYOUT_FEATURE_TYPE_ORNAMENT_SETS_TYPE = 16, 63 HB_AAT_LAYOUT_FEATURE_TYPE_CHARACTER_ALTERNATIVES = 17, 64 HB_AAT_LAYOUT_FEATURE_TYPE_DESIGN_COMPLEXITY_TYPE = 18, 65 HB_AAT_LAYOUT_FEATURE_TYPE_STYLE_OPTIONS = 19, 66 HB_AAT_LAYOUT_FEATURE_TYPE_CHARACTER_SHAPE = 20, 67 HB_AAT_LAYOUT_FEATURE_TYPE_NUMBER_CASE = 21, 68 HB_AAT_LAYOUT_FEATURE_TYPE_TEXT_SPACING = 22, 69 HB_AAT_LAYOUT_FEATURE_TYPE_TRANSLITERATION = 23, 70 HB_AAT_LAYOUT_FEATURE_TYPE_ANNOTATION_TYPE = 24, 71 HB_AAT_LAYOUT_FEATURE_TYPE_KANA_SPACING_TYPE = 25, 72 HB_AAT_LAYOUT_FEATURE_TYPE_IDEOGRAPHIC_SPACING_TYPE = 26, 73 HB_AAT_LAYOUT_FEATURE_TYPE_UNICODE_DECOMPOSITION_TYPE = 27, 74 HB_AAT_LAYOUT_FEATURE_TYPE_RUBY_KANA = 28, 75 HB_AAT_LAYOUT_FEATURE_TYPE_CJK_SYMBOL_ALTERNATIVES_TYPE = 29, 76 HB_AAT_LAYOUT_FEATURE_TYPE_IDEOGRAPHIC_ALTERNATIVES_TYPE = 30, 77 HB_AAT_LAYOUT_FEATURE_TYPE_CJK_VERTICAL_ROMAN_PLACEMENT_TYPE = 31, 78 HB_AAT_LAYOUT_FEATURE_TYPE_ITALIC_CJK_ROMAN = 32, 79 HB_AAT_LAYOUT_FEATURE_TYPE_CASE_SENSITIVE_LAYOUT = 33, 80 HB_AAT_LAYOUT_FEATURE_TYPE_ALTERNATE_KANA = 34, 81 HB_AAT_LAYOUT_FEATURE_TYPE_STYLISTIC_ALTERNATIVES = 35, 82 HB_AAT_LAYOUT_FEATURE_TYPE_CONTEXTUAL_ALTERNATIVES = 36, 83 HB_AAT_LAYOUT_FEATURE_TYPE_LOWER_CASE = 37, 84 HB_AAT_LAYOUT_FEATURE_TYPE_UPPER_CASE = 38, 85 HB_AAT_LAYOUT_FEATURE_TYPE_LANGUAGE_TAG_TYPE = 39, 86 HB_AAT_LAYOUT_FEATURE_TYPE_CJK_ROMAN_SPACING_TYPE = 103, 87 88 _HB_AAT_LAYOUT_FEATURE_TYPE_MAX_VALUE = HB_TAG_MAX_SIGNED /*< skip >*/ 89 } hb_aat_layout_feature_type_t; 90 91 /** 92 * hb_aat_layout_feature_selector_t: 93 * 94 * 95 * Since: 2.2.0 96 */ 97 typedef enum 98 { 99 HB_AAT_LAYOUT_FEATURE_SELECTOR_INVALID = 0xFFFF, 100 101 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_ALL_TYPOGRAPHIC */ 102 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALL_TYPE_FEATURES_ON = 0, 103 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALL_TYPE_FEATURES_OFF = 1, 104 105 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_LIGATURES */ 106 HB_AAT_LAYOUT_FEATURE_SELECTOR_REQUIRED_LIGATURES_ON = 0, 107 HB_AAT_LAYOUT_FEATURE_SELECTOR_REQUIRED_LIGATURES_OFF = 1, 108 HB_AAT_LAYOUT_FEATURE_SELECTOR_COMMON_LIGATURES_ON = 2, 109 HB_AAT_LAYOUT_FEATURE_SELECTOR_COMMON_LIGATURES_OFF = 3, 110 HB_AAT_LAYOUT_FEATURE_SELECTOR_RARE_LIGATURES_ON = 4, 111 HB_AAT_LAYOUT_FEATURE_SELECTOR_RARE_LIGATURES_OFF = 5, 112 HB_AAT_LAYOUT_FEATURE_SELECTOR_LOGOS_ON = 6, 113 HB_AAT_LAYOUT_FEATURE_SELECTOR_LOGOS_OFF = 7, 114 HB_AAT_LAYOUT_FEATURE_SELECTOR_REBUS_PICTURES_ON = 8, 115 HB_AAT_LAYOUT_FEATURE_SELECTOR_REBUS_PICTURES_OFF = 9, 116 HB_AAT_LAYOUT_FEATURE_SELECTOR_DIPHTHONG_LIGATURES_ON = 10, 117 HB_AAT_LAYOUT_FEATURE_SELECTOR_DIPHTHONG_LIGATURES_OFF = 11, 118 HB_AAT_LAYOUT_FEATURE_SELECTOR_SQUARED_LIGATURES_ON = 12, 119 HB_AAT_LAYOUT_FEATURE_SELECTOR_SQUARED_LIGATURES_OFF = 13, 120 HB_AAT_LAYOUT_FEATURE_SELECTOR_ABBREV_SQUARED_LIGATURES_ON = 14, 121 HB_AAT_LAYOUT_FEATURE_SELECTOR_ABBREV_SQUARED_LIGATURES_OFF = 15, 122 HB_AAT_LAYOUT_FEATURE_SELECTOR_SYMBOL_LIGATURES_ON = 16, 123 HB_AAT_LAYOUT_FEATURE_SELECTOR_SYMBOL_LIGATURES_OFF = 17, 124 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_LIGATURES_ON = 18, 125 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_LIGATURES_OFF = 19, 126 HB_AAT_LAYOUT_FEATURE_SELECTOR_HISTORICAL_LIGATURES_ON = 20, 127 HB_AAT_LAYOUT_FEATURE_SELECTOR_HISTORICAL_LIGATURES_OFF = 21, 128 129 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_LIGATURES */ 130 HB_AAT_LAYOUT_FEATURE_SELECTOR_UNCONNECTED = 0, 131 HB_AAT_LAYOUT_FEATURE_SELECTOR_PARTIALLY_CONNECTED = 1, 132 HB_AAT_LAYOUT_FEATURE_SELECTOR_CURSIVE = 2, 133 134 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_LETTER_CASE */ 135 HB_AAT_LAYOUT_FEATURE_SELECTOR_UPPER_AND_LOWER_CASE = 0, /* deprecated */ 136 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALL_CAPS = 1, /* deprecated */ 137 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALL_LOWER_CASE = 2, /* deprecated */ 138 HB_AAT_LAYOUT_FEATURE_SELECTOR_SMALL_CAPS = 3, /* deprecated */ 139 HB_AAT_LAYOUT_FEATURE_SELECTOR_INITIAL_CAPS = 4, /* deprecated */ 140 HB_AAT_LAYOUT_FEATURE_SELECTOR_INITIAL_CAPS_AND_SMALL_CAPS = 5, /* deprecated */ 141 142 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_VERTICAL_SUBSTITUTION */ 143 HB_AAT_LAYOUT_FEATURE_SELECTOR_SUBSTITUTE_VERTICAL_FORMS_ON = 0, 144 HB_AAT_LAYOUT_FEATURE_SELECTOR_SUBSTITUTE_VERTICAL_FORMS_OFF = 1, 145 146 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_LINGUISTIC_REARRANGEMENT */ 147 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINGUISTIC_REARRANGEMENT_ON = 0, 148 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINGUISTIC_REARRANGEMENT_OFF = 1, 149 150 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_NUMBER_SPACING */ 151 HB_AAT_LAYOUT_FEATURE_SELECTOR_MONOSPACED_NUMBERS = 0, 152 HB_AAT_LAYOUT_FEATURE_SELECTOR_PROPORTIONAL_NUMBERS = 1, 153 HB_AAT_LAYOUT_FEATURE_SELECTOR_THIRD_WIDTH_NUMBERS = 2, 154 HB_AAT_LAYOUT_FEATURE_SELECTOR_QUARTER_WIDTH_NUMBERS = 3, 155 156 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_SMART_SWASH_TYPE */ 157 HB_AAT_LAYOUT_FEATURE_SELECTOR_WORD_INITIAL_SWASHES_ON = 0, 158 HB_AAT_LAYOUT_FEATURE_SELECTOR_WORD_INITIAL_SWASHES_OFF = 1, 159 HB_AAT_LAYOUT_FEATURE_SELECTOR_WORD_FINAL_SWASHES_ON = 2, 160 HB_AAT_LAYOUT_FEATURE_SELECTOR_WORD_FINAL_SWASHES_OFF = 3, 161 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINE_INITIAL_SWASHES_ON = 4, 162 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINE_INITIAL_SWASHES_OFF = 5, 163 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINE_FINAL_SWASHES_ON = 6, 164 HB_AAT_LAYOUT_FEATURE_SELECTOR_LINE_FINAL_SWASHES_OFF = 7, 165 HB_AAT_LAYOUT_FEATURE_SELECTOR_NON_FINAL_SWASHES_ON = 8, 166 HB_AAT_LAYOUT_FEATURE_SELECTOR_NON_FINAL_SWASHES_OFF = 9, 167 168 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_DIACRITICS_TYPE */ 169 HB_AAT_LAYOUT_FEATURE_SELECTOR_SHOW_DIACRITICS = 0, 170 HB_AAT_LAYOUT_FEATURE_SELECTOR_HIDE_DIACRITICS = 1, 171 HB_AAT_LAYOUT_FEATURE_SELECTOR_DECOMPOSE_DIACRITICS = 2, 172 173 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_VERTICAL_POSITION */ 174 HB_AAT_LAYOUT_FEATURE_SELECTOR_NORMAL_POSITION = 0, 175 HB_AAT_LAYOUT_FEATURE_SELECTOR_SUPERIORS = 1, 176 HB_AAT_LAYOUT_FEATURE_SELECTOR_INFERIORS = 2, 177 HB_AAT_LAYOUT_FEATURE_SELECTOR_ORDINALS = 3, 178 HB_AAT_LAYOUT_FEATURE_SELECTOR_SCIENTIFIC_INFERIORS = 4, 179 180 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_FRACTIONS */ 181 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_FRACTIONS = 0, 182 HB_AAT_LAYOUT_FEATURE_SELECTOR_VERTICAL_FRACTIONS = 1, 183 HB_AAT_LAYOUT_FEATURE_SELECTOR_DIAGONAL_FRACTIONS = 2, 184 185 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_OVERLAPPING_CHARACTERS_TYPE */ 186 HB_AAT_LAYOUT_FEATURE_SELECTOR_PREVENT_OVERLAP_ON = 0, 187 HB_AAT_LAYOUT_FEATURE_SELECTOR_PREVENT_OVERLAP_OFF = 1, 188 189 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_TYPOGRAPHIC_EXTRAS */ 190 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHENS_TO_EM_DASH_ON = 0, 191 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHENS_TO_EM_DASH_OFF = 1, 192 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHEN_TO_EN_DASH_ON = 2, 193 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHEN_TO_EN_DASH_OFF = 3, 194 HB_AAT_LAYOUT_FEATURE_SELECTOR_SLASHED_ZERO_ON = 4, 195 HB_AAT_LAYOUT_FEATURE_SELECTOR_SLASHED_ZERO_OFF = 5, 196 HB_AAT_LAYOUT_FEATURE_SELECTOR_FORM_INTERROBANG_ON = 6, 197 HB_AAT_LAYOUT_FEATURE_SELECTOR_FORM_INTERROBANG_OFF = 7, 198 HB_AAT_LAYOUT_FEATURE_SELECTOR_SMART_QUOTES_ON = 8, 199 HB_AAT_LAYOUT_FEATURE_SELECTOR_SMART_QUOTES_OFF = 9, 200 HB_AAT_LAYOUT_FEATURE_SELECTOR_PERIODS_TO_ELLIPSIS_ON = 10, 201 HB_AAT_LAYOUT_FEATURE_SELECTOR_PERIODS_TO_ELLIPSIS_OFF = 11, 202 203 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_MATHEMATICAL_EXTRAS */ 204 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHEN_TO_MINUS_ON = 0, 205 HB_AAT_LAYOUT_FEATURE_SELECTOR_HYPHEN_TO_MINUS_OFF = 1, 206 HB_AAT_LAYOUT_FEATURE_SELECTOR_ASTERISK_TO_MULTIPLY_ON = 2, 207 HB_AAT_LAYOUT_FEATURE_SELECTOR_ASTERISK_TO_MULTIPLY_OFF = 3, 208 HB_AAT_LAYOUT_FEATURE_SELECTOR_SLASH_TO_DIVIDE_ON = 4, 209 HB_AAT_LAYOUT_FEATURE_SELECTOR_SLASH_TO_DIVIDE_OFF = 5, 210 HB_AAT_LAYOUT_FEATURE_SELECTOR_INEQUALITY_LIGATURES_ON = 6, 211 HB_AAT_LAYOUT_FEATURE_SELECTOR_INEQUALITY_LIGATURES_OFF = 7, 212 HB_AAT_LAYOUT_FEATURE_SELECTOR_EXPONENTS_ON = 8, 213 HB_AAT_LAYOUT_FEATURE_SELECTOR_EXPONENTS_OFF = 9, 214 HB_AAT_LAYOUT_FEATURE_SELECTOR_MATHEMATICAL_GREEK_ON = 10, 215 HB_AAT_LAYOUT_FEATURE_SELECTOR_MATHEMATICAL_GREEK_OFF = 11, 216 217 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_ORNAMENT_SETS_TYPE */ 218 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_ORNAMENTS = 0, 219 HB_AAT_LAYOUT_FEATURE_SELECTOR_DINGBATS = 1, 220 HB_AAT_LAYOUT_FEATURE_SELECTOR_PI_CHARACTERS = 2, 221 HB_AAT_LAYOUT_FEATURE_SELECTOR_FLEURONS = 3, 222 HB_AAT_LAYOUT_FEATURE_SELECTOR_DECORATIVE_BORDERS = 4, 223 HB_AAT_LAYOUT_FEATURE_SELECTOR_INTERNATIONAL_SYMBOLS = 5, 224 HB_AAT_LAYOUT_FEATURE_SELECTOR_MATH_SYMBOLS = 6, 225 226 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CHARACTER_ALTERNATIVES */ 227 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_ALTERNATES = 0, 228 229 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_DESIGN_COMPLEXITY_TYPE */ 230 HB_AAT_LAYOUT_FEATURE_SELECTOR_DESIGN_LEVEL1 = 0, 231 HB_AAT_LAYOUT_FEATURE_SELECTOR_DESIGN_LEVEL2 = 1, 232 HB_AAT_LAYOUT_FEATURE_SELECTOR_DESIGN_LEVEL3 = 2, 233 HB_AAT_LAYOUT_FEATURE_SELECTOR_DESIGN_LEVEL4 = 3, 234 HB_AAT_LAYOUT_FEATURE_SELECTOR_DESIGN_LEVEL5 = 4, 235 236 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_STYLE_OPTIONS */ 237 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_STYLE_OPTIONS = 0, 238 HB_AAT_LAYOUT_FEATURE_SELECTOR_DISPLAY_TEXT = 1, 239 HB_AAT_LAYOUT_FEATURE_SELECTOR_ENGRAVED_TEXT = 2, 240 HB_AAT_LAYOUT_FEATURE_SELECTOR_ILLUMINATED_CAPS = 3, 241 HB_AAT_LAYOUT_FEATURE_SELECTOR_TITLING_CAPS = 4, 242 HB_AAT_LAYOUT_FEATURE_SELECTOR_TALL_CAPS = 5, 243 244 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CHARACTER_SHAPE */ 245 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_CHARACTERS = 0, 246 HB_AAT_LAYOUT_FEATURE_SELECTOR_SIMPLIFIED_CHARACTERS = 1, 247 HB_AAT_LAYOUT_FEATURE_SELECTOR_JIS1978_CHARACTERS = 2, 248 HB_AAT_LAYOUT_FEATURE_SELECTOR_JIS1983_CHARACTERS = 3, 249 HB_AAT_LAYOUT_FEATURE_SELECTOR_JIS1990_CHARACTERS = 4, 250 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_ALT_ONE = 5, 251 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_ALT_TWO = 6, 252 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_ALT_THREE = 7, 253 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_ALT_FOUR = 8, 254 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_ALT_FIVE = 9, 255 HB_AAT_LAYOUT_FEATURE_SELECTOR_EXPERT_CHARACTERS = 10, 256 HB_AAT_LAYOUT_FEATURE_SELECTOR_JIS2004_CHARACTERS = 11, 257 HB_AAT_LAYOUT_FEATURE_SELECTOR_HOJO_CHARACTERS = 12, 258 HB_AAT_LAYOUT_FEATURE_SELECTOR_NLCCHARACTERS = 13, 259 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRADITIONAL_NAMES_CHARACTERS = 14, 260 261 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_NUMBER_CASE */ 262 HB_AAT_LAYOUT_FEATURE_SELECTOR_LOWER_CASE_NUMBERS = 0, 263 HB_AAT_LAYOUT_FEATURE_SELECTOR_UPPER_CASE_NUMBERS = 1, 264 265 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_TEXT_SPACING */ 266 HB_AAT_LAYOUT_FEATURE_SELECTOR_PROPORTIONAL_TEXT = 0, 267 HB_AAT_LAYOUT_FEATURE_SELECTOR_MONOSPACED_TEXT = 1, 268 HB_AAT_LAYOUT_FEATURE_SELECTOR_HALF_WIDTH_TEXT = 2, 269 HB_AAT_LAYOUT_FEATURE_SELECTOR_THIRD_WIDTH_TEXT = 3, 270 HB_AAT_LAYOUT_FEATURE_SELECTOR_QUARTER_WIDTH_TEXT = 4, 271 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALT_PROPORTIONAL_TEXT = 5, 272 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALT_HALF_WIDTH_TEXT = 6, 273 274 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_TRANSLITERATION */ 275 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_TRANSLITERATION = 0, 276 HB_AAT_LAYOUT_FEATURE_SELECTOR_HANJA_TO_HANGUL = 1, 277 HB_AAT_LAYOUT_FEATURE_SELECTOR_HIRAGANA_TO_KATAKANA = 2, 278 HB_AAT_LAYOUT_FEATURE_SELECTOR_KATAKANA_TO_HIRAGANA = 3, 279 HB_AAT_LAYOUT_FEATURE_SELECTOR_KANA_TO_ROMANIZATION = 4, 280 HB_AAT_LAYOUT_FEATURE_SELECTOR_ROMANIZATION_TO_HIRAGANA = 5, 281 HB_AAT_LAYOUT_FEATURE_SELECTOR_ROMANIZATION_TO_KATAKANA = 6, 282 HB_AAT_LAYOUT_FEATURE_SELECTOR_HANJA_TO_HANGUL_ALT_ONE = 7, 283 HB_AAT_LAYOUT_FEATURE_SELECTOR_HANJA_TO_HANGUL_ALT_TWO = 8, 284 HB_AAT_LAYOUT_FEATURE_SELECTOR_HANJA_TO_HANGUL_ALT_THREE = 9, 285 286 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_ANNOTATION_TYPE */ 287 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_ANNOTATION = 0, 288 HB_AAT_LAYOUT_FEATURE_SELECTOR_BOX_ANNOTATION = 1, 289 HB_AAT_LAYOUT_FEATURE_SELECTOR_ROUNDED_BOX_ANNOTATION = 2, 290 HB_AAT_LAYOUT_FEATURE_SELECTOR_CIRCLE_ANNOTATION = 3, 291 HB_AAT_LAYOUT_FEATURE_SELECTOR_INVERTED_CIRCLE_ANNOTATION = 4, 292 HB_AAT_LAYOUT_FEATURE_SELECTOR_PARENTHESIS_ANNOTATION = 5, 293 HB_AAT_LAYOUT_FEATURE_SELECTOR_PERIOD_ANNOTATION = 6, 294 HB_AAT_LAYOUT_FEATURE_SELECTOR_ROMAN_NUMERAL_ANNOTATION = 7, 295 HB_AAT_LAYOUT_FEATURE_SELECTOR_DIAMOND_ANNOTATION = 8, 296 HB_AAT_LAYOUT_FEATURE_SELECTOR_INVERTED_BOX_ANNOTATION = 9, 297 HB_AAT_LAYOUT_FEATURE_SELECTOR_INVERTED_ROUNDED_BOX_ANNOTATION= 10, 298 299 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_KANA_SPACING_TYPE */ 300 HB_AAT_LAYOUT_FEATURE_SELECTOR_FULL_WIDTH_KANA = 0, 301 HB_AAT_LAYOUT_FEATURE_SELECTOR_PROPORTIONAL_KANA = 1, 302 303 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_IDEOGRAPHIC_SPACING_TYPE */ 304 HB_AAT_LAYOUT_FEATURE_SELECTOR_FULL_WIDTH_IDEOGRAPHS = 0, 305 HB_AAT_LAYOUT_FEATURE_SELECTOR_PROPORTIONAL_IDEOGRAPHS = 1, 306 HB_AAT_LAYOUT_FEATURE_SELECTOR_HALF_WIDTH_IDEOGRAPHS = 2, 307 308 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_UNICODE_DECOMPOSITION_TYPE */ 309 HB_AAT_LAYOUT_FEATURE_SELECTOR_CANONICAL_COMPOSITION_ON = 0, 310 HB_AAT_LAYOUT_FEATURE_SELECTOR_CANONICAL_COMPOSITION_OFF = 1, 311 HB_AAT_LAYOUT_FEATURE_SELECTOR_COMPATIBILITY_COMPOSITION_ON = 2, 312 HB_AAT_LAYOUT_FEATURE_SELECTOR_COMPATIBILITY_COMPOSITION_OFF = 3, 313 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRANSCODING_COMPOSITION_ON = 4, 314 HB_AAT_LAYOUT_FEATURE_SELECTOR_TRANSCODING_COMPOSITION_OFF = 5, 315 316 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_RUBY_KANA */ 317 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_RUBY_KANA = 0, /* deprecated - use HB_AAT_LAYOUT_FEATURE_SELECTOR_RUBY_KANA_OFF instead */ 318 HB_AAT_LAYOUT_FEATURE_SELECTOR_RUBY_KANA = 1, /* deprecated - use HB_AAT_LAYOUT_FEATURE_SELECTOR_RUBY_KANA_ON instead */ 319 HB_AAT_LAYOUT_FEATURE_SELECTOR_RUBY_KANA_ON = 2, 320 HB_AAT_LAYOUT_FEATURE_SELECTOR_RUBY_KANA_OFF = 3, 321 322 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CJK_SYMBOL_ALTERNATIVES_TYPE */ 323 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_CJK_SYMBOL_ALTERNATIVES = 0, 324 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_SYMBOL_ALT_ONE = 1, 325 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_SYMBOL_ALT_TWO = 2, 326 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_SYMBOL_ALT_THREE = 3, 327 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_SYMBOL_ALT_FOUR = 4, 328 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_SYMBOL_ALT_FIVE = 5, 329 330 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_IDEOGRAPHIC_ALTERNATIVES_TYPE */ 331 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_IDEOGRAPHIC_ALTERNATIVES = 0, 332 HB_AAT_LAYOUT_FEATURE_SELECTOR_IDEOGRAPHIC_ALT_ONE = 1, 333 HB_AAT_LAYOUT_FEATURE_SELECTOR_IDEOGRAPHIC_ALT_TWO = 2, 334 HB_AAT_LAYOUT_FEATURE_SELECTOR_IDEOGRAPHIC_ALT_THREE = 3, 335 HB_AAT_LAYOUT_FEATURE_SELECTOR_IDEOGRAPHIC_ALT_FOUR = 4, 336 HB_AAT_LAYOUT_FEATURE_SELECTOR_IDEOGRAPHIC_ALT_FIVE = 5, 337 338 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CJK_VERTICAL_ROMAN_PLACEMENT_TYPE */ 339 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_VERTICAL_ROMAN_CENTERED = 0, 340 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_VERTICAL_ROMAN_HBASELINE = 1, 341 342 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_ITALIC_CJK_ROMAN */ 343 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_CJK_ITALIC_ROMAN = 0, /* deprecated - use HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_ITALIC_ROMAN_OFF instead */ 344 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_ITALIC_ROMAN = 1, /* deprecated - use HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_ITALIC_ROMAN_ON instead */ 345 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_ITALIC_ROMAN_ON = 2, 346 HB_AAT_LAYOUT_FEATURE_SELECTOR_CJK_ITALIC_ROMAN_OFF = 3, 347 348 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CASE_SENSITIVE_LAYOUT */ 349 HB_AAT_LAYOUT_FEATURE_SELECTOR_CASE_SENSITIVE_LAYOUT_ON = 0, 350 HB_AAT_LAYOUT_FEATURE_SELECTOR_CASE_SENSITIVE_LAYOUT_OFF = 1, 351 HB_AAT_LAYOUT_FEATURE_SELECTOR_CASE_SENSITIVE_SPACING_ON = 2, 352 HB_AAT_LAYOUT_FEATURE_SELECTOR_CASE_SENSITIVE_SPACING_OFF = 3, 353 354 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_ALTERNATE_KANA */ 355 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALTERNATE_HORIZ_KANA_ON = 0, 356 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALTERNATE_HORIZ_KANA_OFF = 1, 357 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALTERNATE_VERT_KANA_ON = 2, 358 HB_AAT_LAYOUT_FEATURE_SELECTOR_ALTERNATE_VERT_KANA_OFF = 3, 359 360 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_STYLISTIC_ALTERNATIVES */ 361 HB_AAT_LAYOUT_FEATURE_SELECTOR_NO_STYLISTIC_ALTERNATES = 0, 362 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_ONE_ON = 2, 363 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_ONE_OFF = 3, 364 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWO_ON = 4, 365 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWO_OFF = 5, 366 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_THREE_ON = 6, 367 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_THREE_OFF = 7, 368 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FOUR_ON = 8, 369 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FOUR_OFF = 9, 370 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FIVE_ON = 10, 371 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FIVE_OFF = 11, 372 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SIX_ON = 12, 373 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SIX_OFF = 13, 374 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SEVEN_ON = 14, 375 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SEVEN_OFF = 15, 376 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_EIGHT_ON = 16, 377 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_EIGHT_OFF = 17, 378 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_NINE_ON = 18, 379 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_NINE_OFF = 19, 380 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TEN_ON = 20, 381 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TEN_OFF = 21, 382 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_ELEVEN_ON = 22, 383 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_ELEVEN_OFF = 23, 384 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWELVE_ON = 24, 385 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWELVE_OFF = 25, 386 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_THIRTEEN_ON = 26, 387 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_THIRTEEN_OFF = 27, 388 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FOURTEEN_ON = 28, 389 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FOURTEEN_OFF = 29, 390 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FIFTEEN_ON = 30, 391 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_FIFTEEN_OFF = 31, 392 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SIXTEEN_ON = 32, 393 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SIXTEEN_OFF = 33, 394 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SEVENTEEN_ON = 34, 395 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_SEVENTEEN_OFF = 35, 396 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_EIGHTEEN_ON = 36, 397 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_EIGHTEEN_OFF = 37, 398 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_NINETEEN_ON = 38, 399 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_NINETEEN_OFF = 39, 400 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWENTY_ON = 40, 401 HB_AAT_LAYOUT_FEATURE_SELECTOR_STYLISTIC_ALT_TWENTY_OFF = 41, 402 403 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CONTEXTUAL_ALTERNATIVES */ 404 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_ALTERNATES_ON = 0, 405 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_ALTERNATES_OFF = 1, 406 HB_AAT_LAYOUT_FEATURE_SELECTOR_SWASH_ALTERNATES_ON = 2, 407 HB_AAT_LAYOUT_FEATURE_SELECTOR_SWASH_ALTERNATES_OFF = 3, 408 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_SWASH_ALTERNATES_ON = 4, 409 HB_AAT_LAYOUT_FEATURE_SELECTOR_CONTEXTUAL_SWASH_ALTERNATES_OFF= 5, 410 411 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_LOWER_CASE */ 412 HB_AAT_LAYOUT_FEATURE_SELECTOR_DEFAULT_LOWER_CASE = 0, 413 HB_AAT_LAYOUT_FEATURE_SELECTOR_LOWER_CASE_SMALL_CAPS = 1, 414 HB_AAT_LAYOUT_FEATURE_SELECTOR_LOWER_CASE_PETITE_CAPS = 2, 415 416 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_UPPER_CASE */ 417 HB_AAT_LAYOUT_FEATURE_SELECTOR_DEFAULT_UPPER_CASE = 0, 418 HB_AAT_LAYOUT_FEATURE_SELECTOR_UPPER_CASE_SMALL_CAPS = 1, 419 HB_AAT_LAYOUT_FEATURE_SELECTOR_UPPER_CASE_PETITE_CAPS = 2, 420 421 /* Selectors for #HB_AAT_LAYOUT_FEATURE_TYPE_CJK_ROMAN_SPACING_TYPE */ 422 HB_AAT_LAYOUT_FEATURE_SELECTOR_HALF_WIDTH_CJK_ROMAN = 0, 423 HB_AAT_LAYOUT_FEATURE_SELECTOR_PROPORTIONAL_CJK_ROMAN = 1, 424 HB_AAT_LAYOUT_FEATURE_SELECTOR_DEFAULT_CJK_ROMAN = 2, 425 HB_AAT_LAYOUT_FEATURE_SELECTOR_FULL_WIDTH_CJK_ROMAN = 3, 426 427 _HB_AAT_LAYOUT_FEATURE_SELECTOR_MAX_VALUE = HB_TAG_MAX_SIGNED /*< skip >*/ 428 } hb_aat_layout_feature_selector_t; 429 430 HB_EXTERN unsigned int 431 hb_aat_layout_get_feature_types (hb_face_t *face, 432 unsigned int start_offset, 433 unsigned int *feature_count, /* IN/OUT. May be NULL. */ 434 hb_aat_layout_feature_type_t *features /* OUT. May be NULL. */); 435 436 HB_EXTERN hb_ot_name_id_t 437 hb_aat_layout_feature_type_get_name_id (hb_face_t *face, 438 hb_aat_layout_feature_type_t feature_type); 439 440 typedef struct hb_aat_layout_feature_selector_info_t 441 { 442 hb_ot_name_id_t name_id; 443 hb_aat_layout_feature_selector_t enable; 444 hb_aat_layout_feature_selector_t disable; 445 /*< private >*/ 446 unsigned int reserved; 447 } hb_aat_layout_feature_selector_info_t; 448 449 #define HB_AAT_LAYOUT_NO_SELECTOR_INDEX 0xFFFFu 450 451 HB_EXTERN unsigned int 452 hb_aat_layout_feature_type_get_selector_infos (hb_face_t *face, 453 hb_aat_layout_feature_type_t feature_type, 454 unsigned int start_offset, 455 unsigned int *selector_count, /* IN/OUT. May be NULL. */ 456 hb_aat_layout_feature_selector_info_t *selectors, /* OUT. May be NULL. */ 457 unsigned int *default_index /* OUT. May be NULL. */); 458 459 460 /* 461 * morx/mort 462 */ 463 464 HB_EXTERN hb_bool_t 465 hb_aat_layout_has_substitution (hb_face_t *face); 466 467 468 /* 469 * kerx 470 */ 471 472 HB_EXTERN hb_bool_t 473 hb_aat_layout_has_positioning (hb_face_t *face); 474 475 476 /* 477 * trak 478 */ 479 480 HB_EXTERN hb_bool_t 481 hb_aat_layout_has_tracking (hb_face_t *face); 482 483 484 HB_END_DECLS 485 486 #endif /* HB_AAT_LAYOUT_H */ 487