| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 case HB_SCRIPT_GURMUKHI: | 234 case HB_SCRIPT_GURMUKHI: |
| 235 case HB_SCRIPT_KANNADA: | 235 case HB_SCRIPT_KANNADA: |
| 236 case HB_SCRIPT_MALAYALAM: | 236 case HB_SCRIPT_MALAYALAM: |
| 237 case HB_SCRIPT_ORIYA: | 237 case HB_SCRIPT_ORIYA: |
| 238 case HB_SCRIPT_TAMIL: | 238 case HB_SCRIPT_TAMIL: |
| 239 case HB_SCRIPT_TELUGU: | 239 case HB_SCRIPT_TELUGU: |
| 240 | 240 |
| 241 /* Unicode-3.0 additions */ | 241 /* Unicode-3.0 additions */ |
| 242 case HB_SCRIPT_SINHALA: | 242 case HB_SCRIPT_SINHALA: |
| 243 | 243 |
| 244 /* Unicode-5.2 additions */ | |
| 245 case HB_SCRIPT_JAVANESE: | |
| 246 | |
| 247 /* If the designer designed the font for the 'DFLT' script, | 244 /* If the designer designed the font for the 'DFLT' script, |
| 248 * use the default shaper. Otherwise, use the specific shaper. | 245 * use the default shaper. Otherwise, use the specific shaper. |
| 249 * Note that for some simple scripts, there may not be *any* | 246 * Note that for some simple scripts, there may not be *any* |
| 250 * GSUB/GPOS needed, so there may be no scripts found! */ | 247 * GSUB/GPOS needed, so there may be no scripts found! */ |
| 251 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) | 248 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) |
| 252 return &_hb_ot_complex_shaper_default; | 249 return &_hb_ot_complex_shaper_default; |
| 253 else | 250 else |
| 254 return &_hb_ot_complex_shaper_indic; | 251 return &_hb_ot_complex_shaper_indic; |
| 255 | 252 |
| 256 case HB_SCRIPT_KHMER: | 253 case HB_SCRIPT_KHMER: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 /* Unicode-5.1 additions */ | 306 /* Unicode-5.1 additions */ |
| 310 case HB_SCRIPT_CHAM: | 307 case HB_SCRIPT_CHAM: |
| 311 case HB_SCRIPT_KAYAH_LI: | 308 case HB_SCRIPT_KAYAH_LI: |
| 312 case HB_SCRIPT_LEPCHA: | 309 case HB_SCRIPT_LEPCHA: |
| 313 case HB_SCRIPT_REJANG: | 310 case HB_SCRIPT_REJANG: |
| 314 case HB_SCRIPT_SAURASHTRA: | 311 case HB_SCRIPT_SAURASHTRA: |
| 315 case HB_SCRIPT_SUNDANESE: | 312 case HB_SCRIPT_SUNDANESE: |
| 316 | 313 |
| 317 /* Unicode-5.2 additions */ | 314 /* Unicode-5.2 additions */ |
| 318 case HB_SCRIPT_EGYPTIAN_HIEROGLYPHS: | 315 case HB_SCRIPT_EGYPTIAN_HIEROGLYPHS: |
| 319 //case HB_SCRIPT_JAVANESE: | 316 case HB_SCRIPT_JAVANESE: |
| 320 case HB_SCRIPT_KAITHI: | 317 case HB_SCRIPT_KAITHI: |
| 321 case HB_SCRIPT_MEETEI_MAYEK: | 318 case HB_SCRIPT_MEETEI_MAYEK: |
| 322 case HB_SCRIPT_TAI_THAM: | 319 case HB_SCRIPT_TAI_THAM: |
| 323 case HB_SCRIPT_TAI_VIET: | 320 case HB_SCRIPT_TAI_VIET: |
| 324 | 321 |
| 325 /* Unicode-6.0 additions */ | 322 /* Unicode-6.0 additions */ |
| 326 case HB_SCRIPT_BATAK: | 323 case HB_SCRIPT_BATAK: |
| 327 case HB_SCRIPT_BRAHMI: | 324 case HB_SCRIPT_BRAHMI: |
| 328 //case HB_SCRIPT_MANDAIC: | 325 //case HB_SCRIPT_MANDAIC: |
| 329 | 326 |
| 330 /* Unicode-6.1 additions */ | 327 /* Unicode-6.1 additions */ |
| 331 case HB_SCRIPT_CHAKMA: | 328 case HB_SCRIPT_CHAKMA: |
| 332 case HB_SCRIPT_SHARADA: | 329 case HB_SCRIPT_SHARADA: |
| 333 case HB_SCRIPT_TAKRI: | 330 case HB_SCRIPT_TAKRI: |
| 334 | 331 |
| 335 /* Unicode-7.0 additions */ | 332 /* Unicode-7.0 additions */ |
| 336 case HB_SCRIPT_DUPLOYAN: | 333 case HB_SCRIPT_DUPLOYAN: |
| 337 case HB_SCRIPT_GRANTHA: | 334 case HB_SCRIPT_GRANTHA: |
| 338 case HB_SCRIPT_KHOJKI: | 335 case HB_SCRIPT_KHOJKI: |
| 339 case HB_SCRIPT_KHUDAWADI: | 336 case HB_SCRIPT_KHUDAWADI: |
| 340 case HB_SCRIPT_MAHAJANI: | 337 case HB_SCRIPT_MAHAJANI: |
| 341 //case HB_SCRIPT_MANICHAEAN: | 338 //case HB_SCRIPT_MANICHAEAN: |
| 342 case HB_SCRIPT_MODI: | 339 case HB_SCRIPT_MODI: |
| 343 case HB_SCRIPT_PAHAWH_HMONG: | 340 case HB_SCRIPT_PAHAWH_HMONG: |
| 344 //case HB_SCRIPT_PSALTER_PAHLAVI: | 341 //case HB_SCRIPT_PSALTER_PAHLAVI: |
| 345 case HB_SCRIPT_SIDDHAM: | 342 case HB_SCRIPT_SIDDHAM: |
| 346 case HB_SCRIPT_TIRHUTA: | 343 case HB_SCRIPT_TIRHUTA: |
| 347 | 344 |
| 345 /* Unicode-8.0 additions */ |
| 346 case HB_SCRIPT_AHOM: |
| 347 //case HB_SCRIPT_MULTANI: |
| 348 |
| 349 /* Unicode-9.0 additions */ |
| 350 case HB_SCRIPT_BHAIKSUKI: |
| 351 case HB_SCRIPT_MARCHEN: |
| 352 case HB_SCRIPT_NEWA: |
| 353 |
| 348 /* If the designer designed the font for the 'DFLT' script, | 354 /* If the designer designed the font for the 'DFLT' script, |
| 349 * use the default shaper. Otherwise, use the specific shaper. | 355 * use the default shaper. Otherwise, use the specific shaper. |
| 350 * Note that for some simple scripts, there may not be *any* | 356 * Note that for some simple scripts, there may not be *any* |
| 351 * GSUB/GPOS needed, so there may be no scripts found! */ | 357 * GSUB/GPOS needed, so there may be no scripts found! */ |
| 352 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) | 358 if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T')) |
| 353 return &_hb_ot_complex_shaper_default; | 359 return &_hb_ot_complex_shaper_default; |
| 354 else | 360 else |
| 355 return &_hb_ot_complex_shaper_use; | 361 return &_hb_ot_complex_shaper_use; |
| 356 } | 362 } |
| 357 } | 363 } |
| 358 | 364 |
| 359 | 365 |
| 360 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ | 366 #endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */ |
| OLD | NEW |