Removal remaining uses of "blacklist" terminology

This commit is contained in:
Behdad Esfahbod 2021-06-04 22:33:16 -06:00
parent fa432a121e
commit cf9538e808
3 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ import sys
if len (sys.argv) != 8: if len (sys.argv) != 8:
sys.exit (__doc__) sys.exit (__doc__)
BLACKLISTED_BLOCKS = [ DISABLED_BLOCKS = [
'Samaritan', 'Samaritan',
'Thai', 'Thai',
'Lao', 'Lao',
@ -137,7 +137,7 @@ for i,d in enumerate (data):
if not u in combined: if not u in combined:
combined[u] = list (defaults) combined[u] = list (defaults)
combined[u][i] = v combined[u][i] = v
combined = {k:v for k,v in combined.items() if v[4] not in BLACKLISTED_BLOCKS} combined = {k:v for k,v in combined.items() if v[4] not in DISABLED_BLOCKS}
data = combined data = combined
del combined del combined

View File

@ -120,7 +120,7 @@
#define HB_NO_CMAP_LEGACY_SUBTABLES #define HB_NO_CMAP_LEGACY_SUBTABLES
#define HB_NO_FALLBACK_SHAPE #define HB_NO_FALLBACK_SHAPE
#define HB_NO_OT_KERN #define HB_NO_OT_KERN
#define HB_NO_OT_LAYOUT_BLACKLIST #define HB_NO_OT_LAYOUT_BLOCKLIST
#define HB_NO_OT_SHAPE_FALLBACK #define HB_NO_OT_SHAPE_FALLBACK
#endif #endif

View File

@ -144,7 +144,7 @@ bool
OT::GDEF::is_blocklisted (hb_blob_t *blob, OT::GDEF::is_blocklisted (hb_blob_t *blob,
hb_face_t *face) const hb_face_t *face) const
{ {
#ifdef HB_NO_OT_LAYOUT_BLACKLIST #ifdef HB_NO_OT_LAYOUT_BLOCKLIST
return false; return false;
#endif #endif
/* The ugly business of blocklisting individual fonts' tables happen here! /* The ugly business of blocklisting individual fonts' tables happen here!
@ -383,7 +383,7 @@ bool
OT::GSUB::is_blocklisted (hb_blob_t *blob HB_UNUSED, OT::GSUB::is_blocklisted (hb_blob_t *blob HB_UNUSED,
hb_face_t *face) const hb_face_t *face) const
{ {
#ifdef HB_NO_OT_LAYOUT_BLACKLIST #ifdef HB_NO_OT_LAYOUT_BLOCKLIST
return false; return false;
#endif #endif
return false; return false;
@ -393,7 +393,7 @@ bool
OT::GPOS::is_blocklisted (hb_blob_t *blob HB_UNUSED, OT::GPOS::is_blocklisted (hb_blob_t *blob HB_UNUSED,
hb_face_t *face HB_UNUSED) const hb_face_t *face HB_UNUSED) const
{ {
#ifdef HB_NO_OT_LAYOUT_BLACKLIST #ifdef HB_NO_OT_LAYOUT_BLOCKLIST
return false; return false;
#endif #endif
return false; return false;