s/blacklist/blocklist/g
This commit is contained in:
parent
22048d55aa
commit
56719474c2
@ -583,7 +583,7 @@ struct GDEF
|
||||
}
|
||||
}
|
||||
|
||||
HB_INTERNAL bool is_blacklisted (hb_blob_t *blob,
|
||||
HB_INTERNAL bool is_blocklisted (hb_blob_t *blob,
|
||||
hb_face_t *face) const;
|
||||
|
||||
struct accelerator_t
|
||||
@ -591,7 +591,7 @@ struct GDEF
|
||||
void init (hb_face_t *face)
|
||||
{
|
||||
this->table = hb_sanitize_context_t ().reference_table<GDEF> (face);
|
||||
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||
if (unlikely (this->table->is_blocklisted (this->table.get_blob (), face)))
|
||||
{
|
||||
hb_blob_destroy (this->table.get_blob ());
|
||||
this->table = hb_blob_get_empty ();
|
||||
|
@ -2559,7 +2559,7 @@ struct GPOS : GSUBGPOS
|
||||
bool sanitize (hb_sanitize_context_t *c) const
|
||||
{ return GSUBGPOS::sanitize<PosLookup> (c); }
|
||||
|
||||
HB_INTERNAL bool is_blacklisted (hb_blob_t *blob,
|
||||
HB_INTERNAL bool is_blocklisted (hb_blob_t *blob,
|
||||
hb_face_t *face) const;
|
||||
|
||||
void collect_variation_indices (hb_collect_variation_indices_context_t *c) const
|
||||
|
@ -1547,7 +1547,7 @@ struct GSUB : GSUBGPOS
|
||||
bool sanitize (hb_sanitize_context_t *c) const
|
||||
{ return GSUBGPOS::sanitize<SubstLookup> (c); }
|
||||
|
||||
HB_INTERNAL bool is_blacklisted (hb_blob_t *blob,
|
||||
HB_INTERNAL bool is_blocklisted (hb_blob_t *blob,
|
||||
hb_face_t *face) const;
|
||||
|
||||
typedef GSUBGPOS::accelerator_t<GSUB> accelerator_t;
|
||||
|
@ -3364,7 +3364,7 @@ struct GSUBGPOS
|
||||
void init (hb_face_t *face)
|
||||
{
|
||||
this->table = hb_sanitize_context_t ().reference_table<T> (face);
|
||||
if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face)))
|
||||
if (unlikely (this->table->is_blocklisted (this->table.get_blob (), face)))
|
||||
{
|
||||
hb_blob_destroy (this->table.get_blob ());
|
||||
this->table = hb_blob_get_empty ();
|
||||
|
@ -143,13 +143,13 @@ hb_ot_layout_kern (const hb_ot_shape_plan_t *plan,
|
||||
*/
|
||||
|
||||
bool
|
||||
OT::GDEF::is_blacklisted (hb_blob_t *blob,
|
||||
OT::GDEF::is_blocklisted (hb_blob_t *blob,
|
||||
hb_face_t *face) const
|
||||
{
|
||||
#ifdef HB_NO_OT_LAYOUT_BLACKLIST
|
||||
return false;
|
||||
#endif
|
||||
/* The ugly business of blacklisting individual fonts' tables happen here!
|
||||
/* The ugly business of blocklisting 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
|
||||
*
|
||||
@ -392,7 +392,7 @@ hb_ot_layout_get_ligature_carets (hb_font_t *font,
|
||||
*/
|
||||
|
||||
bool
|
||||
OT::GSUB::is_blacklisted (hb_blob_t *blob HB_UNUSED,
|
||||
OT::GSUB::is_blocklisted (hb_blob_t *blob HB_UNUSED,
|
||||
hb_face_t *face) const
|
||||
{
|
||||
#ifdef HB_NO_OT_LAYOUT_BLACKLIST
|
||||
@ -402,7 +402,7 @@ OT::GSUB::is_blacklisted (hb_blob_t *blob HB_UNUSED,
|
||||
}
|
||||
|
||||
bool
|
||||
OT::GPOS::is_blacklisted (hb_blob_t *blob HB_UNUSED,
|
||||
OT::GPOS::is_blocklisted (hb_blob_t *blob HB_UNUSED,
|
||||
hb_face_t *face HB_UNUSED) const
|
||||
{
|
||||
#ifdef HB_NO_OT_LAYOUT_BLACKLIST
|
||||
|
@ -650,7 +650,7 @@ initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
|
||||
* is *not* a Halant after last consonant already. We know that is the
|
||||
* case for Kannada, while it reorders unconditionally in other scripts,
|
||||
* eg. Malayalam, Bengali, and Devanagari. We don't currently know about
|
||||
* other scripts, so we blacklist Kannada.
|
||||
* other scripts, so we block Kannada.
|
||||
*
|
||||
* Kannada test case:
|
||||
* U+0C9A,U+0CCD,U+0C9A,U+0CCD
|
||||
|
Loading…
Reference in New Issue
Block a user