From 1a1d64bc6f52b42e21609e8ceb4269bdf53b3c40 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 31 Oct 2019 12:50:47 -0700 Subject: [PATCH] If applying morx, apply kern table even if GPOS is present and has kern Since we won't be applying GPOS if morx... To be adjusted as I receive more information from Ned. But for now fixes this: $ ./hb-shape GillSans.ttc Ty [T=0+1109|y=1@-128,0+769] Fixes https://github.com/harfbuzz/harfbuzz/issues/1982 for now. --- src/hb-ot-shape.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 5d9a70cda..77358e57e 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -166,7 +166,7 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan, plan.apply_kerx = true; #endif - if (!plan.apply_kerx && !has_gpos_kern) + if (!plan.apply_kerx && (!has_gpos_kern || !plan.apply_gpos)) { /* Apparently Apple applies kerx if GPOS kern was not applied. */ #ifndef HB_NO_AAT_SHAPE