| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2010,2012 Google, Inc. | 2 * Copyright © 2010,2012 Google, Inc. |
| 3 * | 3 * |
| 4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
| 5 * | 5 * |
| 6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
| 7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
| 8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
| 9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
| 10 * all copies of this software. | 10 * all copies of this software. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 script_features = hangul_features; | 61 script_features = hangul_features; |
| 62 break; | 62 break; |
| 63 | 63 |
| 64 /* Unicode-2.0 additions */ | 64 /* Unicode-2.0 additions */ |
| 65 case HB_SCRIPT_TIBETAN: | 65 case HB_SCRIPT_TIBETAN: |
| 66 script_features = tibetan_features; | 66 script_features = tibetan_features; |
| 67 break; | 67 break; |
| 68 } | 68 } |
| 69 | 69 |
| 70 for (; script_features && *script_features; script_features++) | 70 for (; script_features && *script_features; script_features++) |
| 71 plan->map.add_bool_feature (*script_features); | 71 plan->map.add_global_bool_feature (*script_features); |
| 72 } | 72 } |
| 73 | 73 |
| 74 static hb_ot_shape_normalization_mode_t | 74 static hb_ot_shape_normalization_mode_t |
| 75 normalization_preference_default (const hb_segment_properties_t *props) | 75 normalization_preference_default (const hb_segment_properties_t *props) |
| 76 { | 76 { |
| 77 switch ((hb_tag_t) props->script) | 77 switch ((hb_tag_t) props->script) |
| 78 { | 78 { |
| 79 /* Unicode-1.1 additions */ | 79 /* Unicode-1.1 additions */ |
| 80 case HB_SCRIPT_HANGUL: | 80 case HB_SCRIPT_HANGUL: |
| 81 return HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_FULL; | 81 return HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_FULL; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 "default", | 214 "default", |
| 215 collect_features_default, | 215 collect_features_default, |
| 216 NULL, /* override_features */ | 216 NULL, /* override_features */ |
| 217 NULL, /* data_create */ | 217 NULL, /* data_create */ |
| 218 NULL, /* data_destroy */ | 218 NULL, /* data_destroy */ |
| 219 NULL, /* preprocess_text */ | 219 NULL, /* preprocess_text */ |
| 220 normalization_preference_default, | 220 normalization_preference_default, |
| 221 NULL, /* decompose */ | 221 NULL, /* decompose */ |
| 222 compose_default, | 222 compose_default, |
| 223 NULL, /* setup_masks */ | 223 NULL, /* setup_masks */ |
| 224 true, /* zero_width_attached_marks */ | 224 HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE, |
| 225 true, /* fallback_position */ | 225 true, /* fallback_position */ |
| 226 }; | 226 }; |
| OLD | NEW |