mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 00:41:09 +01:00
[subset-cff2] Only encode VarStore link if any varstore
This commit is contained in:
1 parent
82d9940a93
commit
220caa7e09
1 file changed
+4
-1
@@ -59,7 +59,10 @@ struct cff2_top_dict_op_serializer_t : cff_top_dict_op_serializer_t<>
|
||||
switch (opstr.op)
|
||||
{
|
||||
case OpCode_vstore:
|
||||
return_trace (FontDict::serialize_link4_op(c, opstr.op, info.var_store_link));
|
||||
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));
|
||||
|
||||
Reference in new issue
Block a user