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
ca353e644d
commit
9de413bf01
1 changed files with 4 additions and 4 deletions
|
@ -417,14 +417,14 @@ struct cff_subset_plan {
|
|||
unsigned int glyph;
|
||||
auto it = hb_iter (plan->new_to_old_gid_list);
|
||||
if (it->first == 0) it++;
|
||||
auto _ = *it;
|
||||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
auto &_ = *it;
|
||||
if (glyph == _.first)
|
||||
{
|
||||
old_glyph = _.second;
|
||||
it++;
|
||||
_ = *++it;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -497,15 +497,15 @@ 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++;
|
||||
auto _ = *it;
|
||||
bool not_is_cid = !acc.is_CID ();
|
||||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
auto &_ = *it;
|
||||
if (glyph == _.first)
|
||||
{
|
||||
old_glyph = _.second;
|
||||
it++;
|
||||
_ = *++it;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue