[subset] Hmtx/vmtx tables to use subset2 and new iterator frameworks
diff --git a/src/hb-subset.cc b/src/hb-subset.cc
index 7943695..ddd88f7 100644
--- a/src/hb-subset.cc
+++ b/src/hb-subset.cc
@@ -67,7 +67,7 @@
static bool
_subset2 (hb_subset_plan_t *plan)
{
- bool result = true;
+ bool result = false;
hb_blob_t *source_blob = hb_sanitize_context_t ().reference_table<TableType> (plan->source);
const TableType *table = source_blob->as<TableType> ();
@@ -172,13 +172,13 @@
DEBUG_MSG(SUBSET, nullptr, "skip hhea handled by hmtx");
return true;
case HB_OT_TAG_hmtx:
- result = _subset<const OT::hmtx> (plan);
+ result = _subset2<const OT::hmtx> (plan);
break;
case HB_OT_TAG_vhea:
DEBUG_MSG(SUBSET, nullptr, "skip vhea handled by vmtx");
return true;
case HB_OT_TAG_vmtx:
- result = _subset<const OT::vmtx> (plan);
+ result = _subset2<const OT::vmtx> (plan);
break;
case HB_OT_TAG_maxp:
result = _subset<const OT::maxp> (plan);