[subset] Simplify collect_name_ids

This commit is contained in:
Behdad Esfahbod 2019-06-19 18:42:39 -07:00
parent a5897463d4
commit b0debc32f6
1 changed files with 2 additions and 17 deletions

View File

@ -194,25 +194,10 @@ static void
_nameid_closure (hb_face_t *face,
hb_set_t *nameids)
{
hb_tag_t table_tags[32];
unsigned count = ARRAY_LENGTH (table_tags);
hb_face_get_table_tags (face, 0, &count, table_tags);
for (unsigned int i = 0; i < count; i++)
{
hb_tag_t tag = table_tags[i];
switch (tag) {
#ifndef HB_NO_STAT
case HB_OT_TAG_STAT:
face->table.STAT->collect_name_ids (nameids);
break;
face->table.STAT->collect_name_ids (nameids);
#endif
case HB_OT_TAG_fvar:
face->table.fvar->collect_name_ids (nameids);
break;
default:
break;
}
}
face->table.fvar->collect_name_ids (nameids);
}
/**