From 372722ceee3bb4d30df9edd78c5899dbd6bbd66c Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Wed, 23 Jun 2021 13:10:03 -0700 Subject: [PATCH] [subset] move notdef_outline to the subset input property enum. --- src/hb-subset-input.cc | 6 +++++- src/hb-subset.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/hb-subset-input.cc b/src/hb-subset-input.cc index 70f77a28e..121a6883e 100644 --- a/src/hb-subset-input.cc +++ b/src/hb-subset-input.cc @@ -101,7 +101,7 @@ hb_subset_input_create_or_fail () HB_TAG ('S', 'T', 'A', 'T'), }; input->no_subset_tables->add_array (default_no_subset_tables, - ARRAY_LENGTH (default_no_subset_tables)); + ARRAY_LENGTH (default_no_subset_tables)); //copied from _layout_features_groups in fonttools hb_tag_t default_layout_features[] = { @@ -317,6 +317,8 @@ hb_subset_input_get_flag (hb_subset_input_t *input, return input->overlaps_flag; case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED: return input->passthrough_unrecognized; + case HB_SUBSET_FLAG_NOTDEF_OUTLINE: + return input->notdef_outline; default: return false; } @@ -347,6 +349,8 @@ hb_subset_input_set_flag (hb_subset_input_t *input, case HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED: input->passthrough_unrecognized = value; break; + case HB_SUBSET_FLAG_NOTDEF_OUTLINE: + input->notdef_outline = value; default: // Do nothing. break; diff --git a/src/hb-subset.h b/src/hb-subset.h index 51df794fb..cdcc9bd2a 100644 --- a/src/hb-subset.h +++ b/src/hb-subset.h @@ -47,6 +47,7 @@ typedef enum HB_SUBSET_FLAG_NAME_LEGACY = 4, HB_SUBSET_FLAG_SET_OVERLAPS_FLAG = 5, HB_SUBSET_FLAG_PASSTHROUGH_UNRECOGNIZED = 6, + HB_SUBSET_FLAG_NOTDEF_OUTLINE = 7, } hb_subset_flag_t; HB_EXTERN hb_subset_input_t *