mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-15 01:18:13 +00:00
[subset/cff] Add a vector pre-alloc
This commit is contained in:
parent
e447d394a6
commit
570fb4df58
1 changed files with 3 additions and 0 deletions
|
@ -360,6 +360,9 @@ struct FDArray : CFFIndex<COUNT>
|
|||
|
||||
/* serialize INDEX data */
|
||||
hb_vector_t<unsigned> sizes;
|
||||
if (it.is_random_access_iterator)
|
||||
sizes.alloc (hb_len (it));
|
||||
|
||||
c->push ();
|
||||
+ it
|
||||
| hb_map ([&] (const hb_pair_t<const DICTVAL&, const INFO&> &_)
|
||||
|
|
Loading…
Add table
Reference in a new issue