| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2012,2013 Mozilla Foundation. | 2 * Copyright © 2012,2013 Mozilla Foundation. |
| 3 * Copyright © 2012,2013 Google, Inc. | 3 * Copyright © 2012,2013 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 #define kStylisticAlternativesType 35 | 320 #define kStylisticAlternativesType 35 |
| 321 #define kSwashAlternatesOffSelector 3 | 321 #define kSwashAlternatesOffSelector 3 |
| 322 #define kSwashAlternatesOnSelector 2 | 322 #define kSwashAlternatesOnSelector 2 |
| 323 #define kThirdWidthTextSelector 3 | 323 #define kThirdWidthTextSelector 3 |
| 324 #define kTraditionalNamesCharactersSelector 14 | 324 #define kTraditionalNamesCharactersSelector 14 |
| 325 #define kUpperCasePetiteCapsSelector 2 | 325 #define kUpperCasePetiteCapsSelector 2 |
| 326 #define kUpperCaseSmallCapsSelector 1 | 326 #define kUpperCaseSmallCapsSelector 1 |
| 327 #define kUpperCaseType 38 | 327 #define kUpperCaseType 38 |
| 328 | 328 |
| 329 /* Table data courtesy of Apple. */ | 329 /* Table data courtesy of Apple. */ |
| 330 struct feature_mapping_t { | 330 static const struct feature_mapping_t { |
| 331 FourCharCode otFeatureTag; | 331 FourCharCode otFeatureTag; |
| 332 uint16_t aatFeatureType; | 332 uint16_t aatFeatureType; |
| 333 uint16_t selectorToEnable; | 333 uint16_t selectorToEnable; |
| 334 uint16_t selectorToDisable; | 334 uint16_t selectorToDisable; |
| 335 } feature_mappings[] = { | 335 } feature_mappings[] = { |
| 336 { 'c2pc', kUpperCaseType, kUpperCasePetiteCapsSelector,
kDefaultUpperCaseSelector }, | 336 { 'c2pc', kUpperCaseType, kUpperCasePetiteCapsSelector,
kDefaultUpperCaseSelector }, |
| 337 { 'c2sc', kUpperCaseType, kUpperCaseSmallCapsSelector,
kDefaultUpperCaseSelector }, | 337 { 'c2sc', kUpperCaseType, kUpperCaseSmallCapsSelector,
kDefaultUpperCaseSelector }, |
| 338 { 'calt', kContextualAlternatesType, kContextualAlternatesOnSelector,
kContextualAlternatesOffSelector }, | 338 { 'calt', kContextualAlternatesType, kContextualAlternatesOnSelector,
kContextualAlternatesOffSelector }, |
| 339 { 'case', kCaseSensitiveLayoutType, kCaseSensitiveLayoutOnSelector,
kCaseSensitiveLayoutOffSelector }, | 339 { 'case', kCaseSensitiveLayoutType, kCaseSensitiveLayoutOnSelector,
kCaseSensitiveLayoutOffSelector }, |
| 340 { 'clig', kLigaturesType, kContextualLigaturesOnSelector,
kContextualLigaturesOffSelector }, | 340 { 'clig', kLigaturesType, kContextualLigaturesOnSelector,
kContextualLigaturesOffSelector }, |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 | 1146 |
| 1147 hb_bool_t | 1147 hb_bool_t |
| 1148 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan, | 1148 _hb_coretext_aat_shape (hb_shape_plan_t *shape_plan, |
| 1149 hb_font_t *font, | 1149 hb_font_t *font, |
| 1150 hb_buffer_t *buffer, | 1150 hb_buffer_t *buffer, |
| 1151 const hb_feature_t *features, | 1151 const hb_feature_t *features, |
| 1152 unsigned int num_features) | 1152 unsigned int num_features) |
| 1153 { | 1153 { |
| 1154 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features); | 1154 return _hb_coretext_shape (shape_plan, font, buffer, features, num_features); |
| 1155 } | 1155 } |
| OLD | NEW |