From ff7fc6d488f37e3faaca4986cde35836f013b03f Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 22 May 2019 17:36:16 -0700 Subject: [PATCH] [subset] Add morx, mort, kern, and kernx to the default layout tables drop list. --- src/hb-subset-input.cc | 4 ++++ src/hb-subset.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index 098f13e7b..34f1cb863 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -56,6 +56,10 @@ hb_subset_input_create_or_fail () HB_TAG ('G', 'S', 'U', 'B'), HB_TAG ('G', 'P', 'O', 'S'), HB_TAG ('G', 'D', 'E', 'F'), + HB_TAG ('m', 'o', 'r', 'x'), + HB_TAG ('m', 'o', 'r', 't'), + HB_TAG ('k', 'e', 'r', 'x'), + HB_TAG ('k', 'e', 'r', 'n'), // Copied from fontTools: HB_TAG ('B', 'A', 'S', 'E'), diff --git a/src/hb-subset.cc b/src/hb-subset.cc index ba81dbc02..b422a06cc 100644 --- a/src/hb-subset.cc +++ b/src/hb-subset.cc @@ -254,6 +254,10 @@ _should_drop_table (hb_subset_plan_t *plan, hb_tag_t tag) case HB_OT_TAG_GDEF: case HB_OT_TAG_GPOS: case HB_OT_TAG_GSUB: + case HB_TAG ('m', 'o', 'r', 'x'): + case HB_TAG ('m', 'o', 'r', 't'): + case HB_TAG ('k', 'e', 'r', 'x'): + case HB_TAG ('k', 'e', 'r', 'n'): return true; #endif