Only prefer AAT morx for horizontal layout

Fixes #2124.
This commit is contained in:
Dominik Röttsches 2020-01-24 12:11:07 +02:00 committed by Ebrahim Byagowi
parent fd85818b5b
commit 298c46afbf
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ hb_ot_shape_planner_t::hb_ot_shape_planner_t (hb_face_t *fac
map (face, props), map (face, props),
aat_map (face, props) aat_map (face, props)
#ifndef HB_NO_AAT_SHAPE #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 #endif
{ {
shaper = hb_ot_shape_complex_categorize (this); shaper = hb_ot_shape_complex_categorize (this);