From a5897463d4d0b83cb1bfe4ae1477dac4e3851252 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 Jun 2019 18:36:35 -0700 Subject: [PATCH] [config] Add HB_NO_STAT Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-config.hh | 1 + src/hb-ot-face-table-list.hh | 2 ++ src/hb-subset-plan.cc | 2 ++ 3 files changed, 5 insertions(+) diff --git a/src/hb-config.hh b/src/hb-config.hh index 2ff92ce..3aa48b4 100644 --- a/src/hb-config.hh +++ b/src/hb-config.hh @@ -66,6 +66,7 @@ #define HB_NO_OPEN #define HB_NO_SETLOCALE #define HB_NO_OT_SHAPE_FRACTIONS +#define HB_NO_STAT #define HB_NO_SUBSET_LAYOUT #endif diff --git a/src/hb-ot-face-table-list.hh b/src/hb-ot-face-table-list.hh index 6185b67..4e73db5 100644 --- a/src/hb-ot-face-table-list.hh +++ b/src/hb-ot-face-table-list.hh @@ -54,7 +54,9 @@ HB_OT_TABLE (OT, OS2) #ifndef HB_NO_NAME HB_OT_ACCELERATOR (OT, name) #endif +#ifndef HB_NO_STAT HB_OT_TABLE (OT, STAT) +#endif /* Vertical layout. */ HB_OT_ACCELERATOR (OT, vmtx) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 7c1ed87..baf6a19 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -201,9 +201,11 @@ _nameid_closure (hb_face_t *face, { hb_tag_t tag = table_tags[i]; switch (tag) { +#ifndef HB_NO_STAT case HB_OT_TAG_STAT: face->table.STAT->collect_name_ids (nameids); break; +#endif case HB_OT_TAG_fvar: face->table.fvar->collect_name_ids (nameids); break; -- 2.7.4