[instancer] enable cvar instancing code

This commit is contained in:
Qunxin Liu 2023-08-07 11:12:02 -07:00
parent 366ffd1ef0
commit 0065658e96
2 changed files with 3 additions and 1 deletions

View file

@ -75,7 +75,6 @@ hb_subset_input_t::hb_subset_input_t ()
HB_TAG ('V', 'D', 'M', 'X'),
HB_TAG ('D', 'S', 'I', 'G'),
HB_TAG ('M', 'V', 'A', 'R'),
HB_TAG ('c', 'v', 'a', 'r'),
};
sets.no_subset_tables->add_array (default_no_subset_tables,
ARRAY_LENGTH (default_no_subset_tables));

View file

@ -520,6 +520,9 @@ _subset_table (hb_subset_plan_t *plan,
case HB_OT_TAG_avar:
if (plan->user_axes_location.is_empty ()) return _passthrough (plan, tag);
return _subset<const OT::avar> (plan, buf);
case HB_OT_TAG_cvar:
if (plan->user_axes_location.is_empty ()) return _passthrough (plan, tag);
return _subset<const OT::cvar> (plan, buf);
case HB_OT_TAG_STAT:
if (!plan->user_axes_location.is_empty ()) return _subset<const OT::STAT> (plan, buf);
else return _passthrough (plan, tag);