From 64cf53d6197a0e6c56aef744ceff2f8a0ff85654 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Fri, 2 Mar 2018 17:33:49 -0800 Subject: [PATCH] [subset] Subset vmtx if present. --- src/hb-ot-hmtx-table.hh | 2 +- src/hb-subset.cc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index 3cd48a62e..bff792a60 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -264,7 +264,7 @@ struct hmtxvmtx { advance += (font->num_coords ? var_table->get_advance_var (glyph, font->coords, font->num_coords) : 0); // TODO Optimize?! } - return advance; + return advance; } public: diff --git a/src/hb-subset.cc b/src/hb-subset.cc index 9ebe5d31d..e2d9a89d6 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -252,6 +252,9 @@ _subset_table (hb_subset_plan_t *plan, case HB_OT_TAG_hmtx: result = _subset (plan); break; + case HB_OT_TAG_vmtx: + result = _subset (plan); + break; case HB_OT_TAG_maxp: result = _subset (plan); break;