OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2010,2011,2012 Google, Inc. | 2 * Copyright © 2010,2011,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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 case HB_SCRIPT_NKO: | 184 case HB_SCRIPT_NKO: |
185 case HB_SCRIPT_PHAGS_PA: | 185 case HB_SCRIPT_PHAGS_PA: |
186 | 186 |
187 /* Unicode-6.0 additions */ | 187 /* Unicode-6.0 additions */ |
188 case HB_SCRIPT_MANDAIC: | 188 case HB_SCRIPT_MANDAIC: |
189 | 189 |
190 /* Unicode-7.0 additions */ | 190 /* Unicode-7.0 additions */ |
191 case HB_SCRIPT_MANICHAEAN: | 191 case HB_SCRIPT_MANICHAEAN: |
192 case HB_SCRIPT_PSALTER_PAHLAVI: | 192 case HB_SCRIPT_PSALTER_PAHLAVI: |
193 | 193 |
| 194 /* Unicode-9.0 additions */ |
| 195 case HB_SCRIPT_ADLAM: |
| 196 |
194 /* For Arabic script, use the Arabic shaper even if no OT script tag was f
ound. | 197 /* For Arabic script, use the Arabic shaper even if no OT script tag was f
ound. |
195 * This is because we do fallback shaping for Arabic script (and not other
s). | 198 * This is because we do fallback shaping for Arabic script (and not other
s). |
196 * But note that Arabic shaping is applicable only to horizontal layout; f
or | 199 * But note that Arabic shaping is applicable only to horizontal layout; f
or |
197 * vertical text, just use the generic shaper instead. */ | 200 * vertical text, just use the generic shaper instead. */ |
198 if ((planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT || | 201 if ((planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT || |
199 planner->props.script == HB_SCRIPT_ARABIC) && | 202 planner->props.script == HB_SCRIPT_ARABIC) && |
200 HB_DIRECTION_IS_HORIZONTAL(planner->props.direction)) | 203 HB_DIRECTION_IS_HORIZONTAL(planner->props.direction)) |
201 return &_hb_ot_complex_shaper_arabic; | 204 return &_hb_ot_complex_shaper_arabic; |
202 else | 205 else |
203 return &_hb_ot_complex_shaper_default; | 206 return &_hb_ot_complex_shaper_default; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 * GSUB/GPOS needed, so there may be no scripts found! */ | 368 * GSUB/GPOS needed, so there may be no scripts found! */ |
366 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) | 369 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) |
367 return &_hb_ot_complex_shaper_default; | 370 return &_hb_ot_complex_shaper_default; |
368 else | 371 else |
369 return &_hb_ot_complex_shaper_use; | 372 return &_hb_ot_complex_shaper_use; |
370 } | 373 } |
371 } | 374 } |
372 | 375 |
373 | 376 |
374 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ | 377 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ |
OLD | NEW |