[USE] Only use USE shaper if script system is not DFLT
Same logic as Indic and SEA.
This commit is contained in:
parent
29832d797f
commit
87dde9c647
|
@ -241,7 +241,7 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
|
||||||
case HB_SCRIPT_JAVANESE:
|
case HB_SCRIPT_JAVANESE:
|
||||||
|
|
||||||
/* If the designer designed the font for the 'DFLT' script,
|
/* If the designer designed the font for the 'DFLT' script,
|
||||||
* use the default shaper. Otherwise, use the Indic shaper.
|
* use the default shaper. Otherwise, use the specific shaper.
|
||||||
* Note that for some simple scripts, there may not be *any*
|
* Note that for some simple scripts, there may not be *any*
|
||||||
* GSUB/GPOS needed, so there may be no scripts found! */
|
* GSUB/GPOS needed, so there may be no scripts found! */
|
||||||
if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
|
if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
|
||||||
|
@ -283,7 +283,7 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
|
||||||
case HB_SCRIPT_TAI_THAM:
|
case HB_SCRIPT_TAI_THAM:
|
||||||
|
|
||||||
/* If the designer designed the font for the 'DFLT' script,
|
/* If the designer designed the font for the 'DFLT' script,
|
||||||
* use the default shaper. Otherwise, use the Indic shaper.
|
* use the default shaper. Otherwise, use the specific shaper.
|
||||||
* Note that for some simple scripts, there may not be *any*
|
* Note that for some simple scripts, there may not be *any*
|
||||||
* GSUB/GPOS needed, so there may be no scripts found! */
|
* GSUB/GPOS needed, so there may be no scripts found! */
|
||||||
if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
|
if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
|
||||||
|
@ -359,6 +359,13 @@ hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
|
||||||
case HB_SCRIPT_SIDDHAM:
|
case HB_SCRIPT_SIDDHAM:
|
||||||
case HB_SCRIPT_TIRHUTA:
|
case HB_SCRIPT_TIRHUTA:
|
||||||
|
|
||||||
|
/* If the designer designed the font for the 'DFLT' script,
|
||||||
|
* use the default shaper. Otherwise, use the specific shaper.
|
||||||
|
* Note that for some simple scripts, 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_use;
|
return &_hb_ot_complex_shaper_use;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue