[Indic] Make sure New Tai Lue works!

This commit is contained in:
Behdad Esfahbod 2013-02-12 10:31:14 -05:00
parent 568000274c
commit 5676d5d527
5 changed files with 12 additions and 4 deletions

View File

@ -285,11 +285,15 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
case HB_SCRIPT_SHARADA:
case HB_SCRIPT_TAKRI:
/* Only use Indic shaper if the font has Indic tables. */
if (planner->map.found_script[0])
return &_hb_ot_complex_shaper_indic;
else
/* If the designer designed the font for the 'DFLT' script,
* use the default shaper. Otherwise, use the Indic shaper.
* Note that for some scripts, like New Tai Lue, there may
* not be *any* GSUB/GPOS needed, so there may be no scripts
* found! */
if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
return &_hb_ot_complex_shaper_default;
else
return &_hb_ot_complex_shaper_indic;
case HB_SCRIPT_KHMER:
/* A number of Khmer fonts in the wild don't have a 'pref' feature,

View File

@ -1,2 +1,3 @@
script-khmer
script-new-tai-lue
script-thai