mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Speed up for retaingids
This commit is contained in:
parent
9de413bf01
commit
238cb0fbfd
1 changed files with 3 additions and 4 deletions
|
@ -584,11 +584,10 @@ struct cff_subset_plan {
|
|||
|
||||
/* check whether the subset renumbers any glyph IDs */
|
||||
gid_renum = false;
|
||||
for (hb_codepoint_t new_glyph = 0; new_glyph < num_glyphs; new_glyph++)
|
||||
for (const auto &_ : plan->new_to_old_gid_list)
|
||||
{
|
||||
if (!plan->old_gid_for_new_gid(new_glyph, &old_glyph))
|
||||
continue;
|
||||
if (new_glyph != old_glyph) {
|
||||
if (_.first != _.second)
|
||||
{
|
||||
gid_renum = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue