[subset-cff2] Only encode VarStore link if any varstore

This commit is contained in:
Behdad Esfahbod 2023-02-19 11:01:27 -07:00
parent 82d9940a93
commit 220caa7e09
1 changed files with 4 additions and 1 deletions

View File

@ -59,7 +59,10 @@ struct cff2_top_dict_op_serializer_t : cff_top_dict_op_serializer_t<>
switch (opstr.op)
{
case OpCode_vstore:
if (info.var_store_link)
return_trace (FontDict::serialize_link4_op(c, opstr.op, info.var_store_link));
else
return_trace (true);
default:
return_trace (cff_top_dict_op_serializer_t<>::serialize (c, opstr, info));