mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Micro-optimize
This commit is contained in:
parent
5a3ac0ab34
commit
a24025c90d
1 changed files with 2 additions and 1 deletions
|
@ -496,6 +496,7 @@ struct cff_subset_plan {
|
|||
unsigned num_glyphs = plan->num_output_glyphs ();
|
||||
auto it = hb_iter (plan->new_to_old_gid_list);
|
||||
if (it->first == 0) it++;
|
||||
bool not_is_cid = !acc.is_CID ();
|
||||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
|
@ -511,7 +512,7 @@ struct cff_subset_plan {
|
|||
}
|
||||
sid = glyph_to_sid_map ? glyph_to_sid_map->get (old_glyph) : acc.glyph_to_sid (old_glyph);
|
||||
|
||||
if (!acc.is_CID ())
|
||||
if (not_is_cid)
|
||||
sid = sidmap.add (sid);
|
||||
|
||||
if (sid != last_sid + 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue