Prefer morx table if GSUB is empty (no scripts)
Fixes https://github.com/harfbuzz/harfbuzz/issues/1348
This commit is contained in:
parent
aa06574823
commit
eafd515639
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue