mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[subset-cff] Pre-alloc out buffer
This commit is contained in:
1 parent
0761e7cdfd
commit
7c86f2e763
1 file changed
+1
@@ -853,6 +853,7 @@ struct subr_subsetter_t
|
||||
{
|
||||
str_encoder_t encoder (buff);
|
||||
encoder.reset ();
|
||||
buff.alloc (str.get_count () * 3);
|
||||
/* if a prefix (CFF1 width or CFF2 vsindex) has been removed along with hints,
|
||||
* re-insert it at the beginning of charstreing */
|
||||
if (str.has_prefix () && str.is_hint_dropped ())
|
||||
|
||||
Reference in new issue
Block a user