Fix GPOS/kern interaction

Oops.  Was checking for kern feature in GSUB, not GPOS.
This commit is contained in:
Behdad Esfahbod 2018-10-10 10:57:28 -04:00
parent d1be805e78
commit a03850a356
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan,
plan.kern_mask = plan.map.get_mask (kern_tag);
bool kerning_requested = !!plan.kern_mask;
bool has_gpos_kern = plan.map.get_feature_index (0, kern_tag) != HB_OT_LAYOUT_NO_FEATURE_INDEX;
bool has_gpos_kern = plan.map.get_feature_index (1, kern_tag) != HB_OT_LAYOUT_NO_FEATURE_INDEX;
bool disable_gpos = plan.shaper->gpos_tag &&
plan.shaper->gpos_tag != plan.map.chosen_script[1];