mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[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:
1 parent
f1de1d8cf1
commit
79121f6277
1 file changed
+6
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user