[config] Add HB_NO_STAT

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
Behdad Esfahbod 2019-06-19 18:36:35 -07:00
parent ffc2b8d56e
commit a5897463d4
3 changed files with 5 additions and 0 deletions

View File

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

View File

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

View File

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