[config] Add HB_NO_STAT

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
pull/1780/head
Behdad Esfahbod 6 years ago
parent ffc2b8d56e
commit a5897463d4
  1. 1
      src/hb-config.hh
  2. 2
      src/hb-ot-face-table-list.hh
  3. 2
      src/hb-subset-plan.cc

@ -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

@ -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)

@ -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;

Loading…
Cancel
Save