[subset] Simplify collect_name_ids
This commit is contained in:
parent
a5897463d4
commit
b0debc32f6
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user