From 298c46afbfd48f014243be7d3e6dbba5e69d242d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20R=C3=B6ttsches?= Date: Fri, 24 Jan 2020 12:11:07 +0200 Subject: [PATCH] Only prefer AAT morx for horizontal layout Fixes #2124. --- src/hb-ot-shape.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 874338791..17695011b 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -70,7 +70,8 @@ hb_ot_shape_planner_t::hb_ot_shape_planner_t (hb_face_t *fac map (face, props), aat_map (face, props) #ifndef HB_NO_AAT_SHAPE - , apply_morx (hb_aat_layout_has_substitution (face)) + /* https://github.com/harfbuzz/harfbuzz/issues/2124 */ + , apply_morx (HB_DIRECTION_IS_HORIZONTAL(props->direction) && hb_aat_layout_has_substitution (face)) #endif { shaper = hb_ot_shape_complex_categorize (this);