summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-07 16:07:22 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-11-07 16:07:22 -0500
commit5cf6f94dfd30a468ab8464435e846811c39d9226 (patch)
tree4ed229ceadd521710b196cc929888ec1ab44e26a
parent41cff7afc916048810a7ea4aa33ecdee7401df74 (diff)
Don't apply both kerx and kern
Ouch!
-rw-r--r--src/hb-ot-shape.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc
index dfe2a88c..455c8d68 100644
--- a/src/hb-ot-shape.cc
+++ b/src/hb-ot-shape.cc
@@ -129,7 +129,7 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan,
/* Apparently Apple applies kerx if GPOS kern was not applied. */
if (hb_aat_layout_has_positioning (face))
plan.apply_kerx = true;
- if (hb_ot_layout_has_kerning (face))
+ else if (hb_ot_layout_has_kerning (face))
plan.apply_kern = true;
else
plan.fallback_kerning = true;