mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[subset/cff1] Speed up plan_subset_charset
25% speedup in --benchmark_filter=subset_glyphs/SourceSansPro'.*retaingids/10
This commit is contained in:
parent
fd13aa9eff
commit
9e80f6b1b6
1 changed files with 2 additions and 0 deletions
|
@ -501,6 +501,8 @@ struct cff_subset_plan {
|
|||
if (it->first == 0) it++;
|
||||
auto _ = *it;
|
||||
bool not_is_cid = !acc.is_CID ();
|
||||
if (not_is_cid)
|
||||
sidmap.resize (num_glyphs);
|
||||
for (glyph = 1; glyph < num_glyphs; glyph++)
|
||||
{
|
||||
hb_codepoint_t old_glyph;
|
||||
|
|
Loading…
Add table
Reference in a new issue