summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-16 14:46:40 -0800
committerBehdad Esfahbod <behdad@behdad.org>2018-11-16 14:46:40 -0800
commit7a97f7074052a5d746af29f0743abd20682b09a2 (patch)
tree66674d18530896ffe007a7be53ae10dfc51740a8
parenteafd515639497098436ecf4c7b836e231bced323 (diff)
Don't apply GPOS if applying morx
That's what Apple does, and it wouldn't degrade our OpenType performance. Part of https://github.com/harfbuzz/harfbuzz/issues/1348
-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 00d4c0b6..ccee8d34 100644
--- a/src/hb-ot-shape.cc
+++ b/src/hb-ot-shape.cc
@@ -126,7 +126,7 @@ hb_ot_shape_planner_t::compile (hb_ot_shape_plan_t &plan,
if (hb_options ().aat && hb_aat_layout_has_positioning (face))
plan.apply_kerx = true;
- else if (!disable_gpos && hb_ot_layout_has_positioning (face))
+ else if (!apply_morx && !disable_gpos && hb_ot_layout_has_positioning (face))
plan.apply_gpos = true;
else if (hb_aat_layout_has_positioning (face))
plan.apply_kerx = true;