From: Behdad Esfahbod Date: Fri, 12 Apr 2019 13:33:25 +0000 (-0400) Subject: Add HB_NO_OT_LAYOUT_BLACKLIST X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ddbfa006d752f6ddd3610ff968f84cf18dec031;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Add HB_NO_OT_LAYOUT_BLACKLIST Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 70c4601..1e2d159 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; }