[subset-cff2] Round blended Private values when instancing

Hopefully no one blends BlueScale...
This commit is contained in:
Behdad Esfahbod 2023-02-19 20:00:39 -07:00
parent a4b7033d01
commit 21ff66cbd4
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ struct cff2_private_dict_blend_opset_t : dict_opset_t
const hb_array_t<const number_t> blends,
unsigned n, unsigned i)
{
arg.set_real (arg.to_real () + param.blend_deltas (blends));
arg.set_int (round (arg.to_real () + param.blend_deltas (blends)));
}
static void process_blend (cff2_priv_dict_interp_env_t& env, cff2_private_blend_encoder_param_t& param)