Add HB_NO_NAME_TABLE_AAT

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
Behdad Esfahbod 2019-04-12 15:00:37 -04:00
parent 60a58aa61c
commit 079d2dcbb2
1 changed files with 2 additions and 0 deletions

View File

@ -60,8 +60,10 @@ struct NameRecord
if (p == 1) if (p == 1)
return _hb_ot_name_language_for_mac_code (l); return _hb_ot_name_language_for_mac_code (l);
#if !defined(HB_NO_NAME_TABLE_AAT)
if (p == 0) if (p == 0)
return _hb_aat_language_get (face, l); return _hb_aat_language_get (face, l);
#endif
return HB_LANGUAGE_INVALID; return HB_LANGUAGE_INVALID;
} }