Minor, replace hb_set_add with private API

This commit is contained in:
Ebrahim Byagowi 2019-10-08 13:24:26 +03:30
parent ad86806dcb
commit c7621cf211
5 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@
void hb_ot_map_t::collect_lookups (unsigned int table_index, hb_set_t *lookups_out) const
{
for (unsigned int i = 0; i < lookups[table_index].length; i++)
hb_set_add (lookups_out, lookups[table_index][i].index);
lookups_out->add (lookups[table_index][i].index);
}

View File

@ -916,7 +916,7 @@ struct subr_subsetter_t
hb_set_t *closure,
const subr_subset_param_t &param)
{
hb_set_add (closure, subr_num);
closure->add (subr_num);
collect_subr_refs_in_str (subrs[subr_num], param);
}

View File

@ -389,7 +389,7 @@ struct cff1_cs_opset_subr_subset_t : cff1_cs_opset_t<cff1_cs_opset_subr_subset_t
byte_str_ref_t str_ref = env.str_ref;
env.call_subr (subrs, type);
param.current_parsed_str->add_call_op (op, str_ref, env.context.subr_num);
hb_set_add (closure, env.context.subr_num);
closure->add (env.context.subr_num);
param.set_current_str (env, true);
}

View File

@ -219,7 +219,7 @@ struct cff2_cs_opset_subr_subset_t : cff2_cs_opset_t<cff2_cs_opset_subr_subset_t
byte_str_ref_t str_ref = env.str_ref;
env.call_subr (subrs, type);
param.current_parsed_str->add_call_op (op, str_ref, env.context.subr_num);
hb_set_add (closure, env.context.subr_num);
closure->add (env.context.subr_num);
param.set_current_str (env, true);
}

View File

@ -43,7 +43,7 @@ _add_gid_and_children (const OT::glyf::accelerator_t &glyf,
// Already visited this gid, ignore.
return;
hb_set_add (gids_to_retain, gid);
gids_to_retain->add (gid);
hb_bytes_t glyph_bytes = glyf.bytes_for_glyph (gid);
const OT::glyf::GlyphHeader &glyph_header = *glyph_bytes.as<OT::glyf::GlyphHeader> ();
@ -54,14 +54,14 @@ _add_gid_and_children (const OT::glyf::accelerator_t &glyf,
#ifndef HB_NO_SUBSET_CFF
static inline void
_add_cff_seac_components (const OT::cff1::accelerator_t &cff,
hb_codepoint_t gid,
hb_set_t *gids_to_retain)
hb_codepoint_t gid,
hb_set_t *gids_to_retain)
{
hb_codepoint_t base_gid, accent_gid;
if (cff.get_seac_components (gid, &base_gid, &accent_gid))
{
hb_set_add (gids_to_retain, base_gid);
hb_set_add (gids_to_retain, accent_gid);
gids_to_retain->add (base_gid);
gids_to_retain->add (accent_gid);
}
}
#endif