[subset-cff1] Share subrs object

Multiple FDs might share the same subrs...
This commit is contained in:
Behdad Esfahbod 2022-11-28 16:19:54 -07:00
parent c7b998b355
commit cba82829ba
1 changed files with 1 additions and 1 deletions

View File

@ -697,7 +697,7 @@ static bool _serialize_cff1 (hb_serialize_context_t *c,
if (unlikely (!dest)) return false; if (unlikely (!dest)) return false;
c->push (); c->push ();
if (likely (dest && dest->serialize (c, plan.subset_localsubrs[i]))) if (likely (dest && dest->serialize (c, plan.subset_localsubrs[i])))
subrs_link = c->pop_pack (false); subrs_link = c->pop_pack ();
else else
{ {
c->pop_discard (); c->pop_discard ();