提交 eafd5156 编写于 作者: B Behdad Esfahbod

Prefer morx table if GSUB is empty (no scripts)

Fixes https://github.com/harfbuzz/harfbuzz/issues/1348
上级 aa065748
...@@ -62,7 +62,11 @@ _hb_apply_morx (hb_face_t *face) ...@@ -62,7 +62,11 @@ _hb_apply_morx (hb_face_t *face)
hb_aat_layout_has_substitution (face)) hb_aat_layout_has_substitution (face))
return true; return true;
return !hb_ot_layout_has_substitution (face) && /* Ignore empty GSUB tables. */
return (!hb_ot_layout_has_substitution (face) ||
!hb_ot_layout_table_get_script_tags (face,
HB_OT_TAG_GSUB,
0, nullptr, nullptr)) &&
hb_aat_layout_has_substitution (face); hb_aat_layout_has_substitution (face);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册