mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Speed up plan_subset_charset more
16% speed up in retaingid subsetting NotoSansCJKkr-Regular.otf.
This commit is contained in:
parent
15d8f0ca7c
commit
982554c71c
1 changed files with 4 additions and 6 deletions
|
@ -551,14 +551,12 @@ struct cff1_subset_plan
|
|||
sid = sidmap.add (sid);
|
||||
|
||||
if (sid != last_sid + 1)
|
||||
{
|
||||
subset_charset_ranges.push (code_pair_t {sid, glyph});
|
||||
|
||||
if (glyph == old_glyph && skip)
|
||||
{
|
||||
glyph = hb_min (_.first - 1, glyph_to_sid_map->arrayZ[old_glyph].glyph);
|
||||
sid += glyph - old_glyph;
|
||||
}
|
||||
if (glyph == old_glyph && skip)
|
||||
{
|
||||
glyph = hb_min (_.first - 1, glyph_to_sid_map->arrayZ[old_glyph].glyph);
|
||||
sid += glyph - old_glyph;
|
||||
}
|
||||
last_sid = sid;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue