diff --git a/src/hb-subset-cff2.cc b/src/hb-subset-cff2.cc index 01eb3fe89..d2fcdceac 100644 --- a/src/hb-subset-cff2.cc +++ b/src/hb-subset-cff2.cc @@ -162,6 +162,17 @@ struct cff2_cs_opset_flatten_t : cff2_cs_opset_t &env, flatten_param_t& param) + { + SUPER::flush_hintmask (op, env, param); + if (!param.drop_hints) + { + str_encoder_t encoder (param.flatStr); + for (unsigned int i = 0; i < env.hintmask_size; i++) + encoder.encode_byte (env.str_ref[i]); + } + } + private: typedef cff2_cs_opset_t SUPER; typedef cs_opset_t, flatten_param_t> CSOPSET;