[subset/cff2] Parse vsindexdict in the subset accelerator private dicts

The subset-side private-dict opset never handled OpCode_vsindexdict, so
accelerator_subset_t's privateDicts[fd].ivs always stayed 0 and charstring
interpretation during subsetting started from the wrong variation-store
index for any FD whose Private dict declares a non-zero vsindex.  Mirror
what cff2_private_dict_opset_t does; the op bytes are still recorded so
the verbatim-copy path is unchanged.
This commit is contained in:
Behdad Esfahbod committed 2026-07-03 21:00:50 -06:00
1 parent f1de1d8cf1
commit 79121f6277
1 file changed
+6
+6
View File
@@ -346,6 +346,12 @@ struct cff2_private_dict_opset_subset_t : dict_opset_t
env.clear_args ();
break;
case OpCode_vsindexdict:
env.process_vsindex ();
dictval.ivs = env.get_ivs ();
env.clear_args ();
break;
default:
SUPER::process_op (op, env);
if (!env.argStack.is_empty ()) return;