[instancer] support STAT table for all instancing operations

This commit is contained in:
Qunxin Liu committed 2023-07-19 11:21:01 -07:00
1 parent 73d94dbde3
commit a0bb2d3a9b
1 file changed
+1 -3
+1 -3
View File
@@ -517,9 +517,7 @@ _subset_table (hb_subset_plan_t *plan,
if (plan->user_axes_location.is_empty ()) return _passthrough (plan, tag);
return _subset<const OT::fvar> (plan, buf);
case HB_OT_TAG_STAT:
/*TODO(qxliu): change the condition as we support more complex
* instancing operation*/
if (plan->all_axes_pinned) return _subset<const OT::STAT> (plan, buf);
if (!plan->user_axes_location.is_empty ()) return _subset<const OT::STAT> (plan, buf);
else return _passthrough (plan, tag);
case HB_TAG ('c', 'v', 't', ' '):