From 9ddbfa006d752f6ddd3610ff968f84cf18dec031 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 12 Apr 2019 09:33:25 -0400 Subject: [PATCH] Add HB_NO_OT_LAYOUT_BLACKLIST Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-ot-layout.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 70c4601a2..1e2d159b5 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -138,6 +138,9 @@ bool OT::GDEF::is_blacklisted (hb_blob_t *blob, hb_face_t *face) const { +#if defined(HB_NO_OT_LAYOUT_BLACKLIST) + return false; +#endif /* The ugly business of blacklisting individual fonts' tables happen here! * See this thread for why we finally had to bend in and do this: * https://lists.freedesktop.org/archives/harfbuzz/2016-February/005489.html @@ -381,6 +384,9 @@ bool OT::GSUB::is_blacklisted (hb_blob_t *blob HB_UNUSED, hb_face_t *face) const { +#if defined(HB_NO_OT_LAYOUT_BLACKLIST) + return false; +#endif /* Mac OS X prefers morx over GSUB. It also ships with various Indic fonts, * all by 'MUTF' foundry (Tamil MN, Tamil Sangam MN, etc.), that have broken * GSUB/GPOS tables. Some have GSUB with zero scripts, those are ignored by @@ -406,6 +412,9 @@ bool OT::GPOS::is_blacklisted (hb_blob_t *blob HB_UNUSED, hb_face_t *face HB_UNUSED) const { +#if defined(HB_NO_OT_LAYOUT_BLACKLIST) + return false; +#endif return false; }