Only prefer AAT morx for horizontal layout

Fixes #2124.
pull/2126/head
Dominik Röttsches 5 years ago committed by Ebrahim Byagowi
parent fd85818b5b
commit 298c46afbf
  1. 3
      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);

Loading…
Cancel
Save