[indic] Apply 'kern' for all scripts except for Khmer in Uniscribe mode
Seems to better match Uniscribe. Note: NotoSansTelugu-Regular has kern feature, so this fixes most of the positioning failures there, except for the kern pairs blocked by a (non-)joiner, in which case we (correctly) kern, but Uniscribe doesn't.
This commit is contained in:
parent
30145272a7
commit
eb10233b26
|
@ -451,9 +451,16 @@ collect_features_indic (hb_ot_shape_planner_t *plan)
|
||||||
static void
|
static void
|
||||||
override_features_indic (hb_ot_shape_planner_t *plan)
|
override_features_indic (hb_ot_shape_planner_t *plan)
|
||||||
{
|
{
|
||||||
/* Uniscribe does not apply 'kern'. */
|
/* Uniscribe does not apply 'kern' in Khmer. */
|
||||||
if (hb_options ().uniscribe_bug_compatible)
|
if (hb_options ().uniscribe_bug_compatible)
|
||||||
|
{
|
||||||
|
switch ((hb_tag_t) plan->props.script)
|
||||||
|
{
|
||||||
|
case HB_SCRIPT_KHMER:
|
||||||
plan->map.add_feature (HB_TAG('k','e','r','n'), 0, F_GLOBAL);
|
plan->map.add_feature (HB_TAG('k','e','r','n'), 0, F_GLOBAL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
plan->map.add_feature (HB_TAG('l','i','g','a'), 0, F_GLOBAL);
|
plan->map.add_feature (HB_TAG('l','i','g','a'), 0, F_GLOBAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue