[subset] move notdef_outline to the subset input property enum.

This commit is contained in:
Garret Rieger 2021-06-23 13:10:03 -07:00
parent a6c6cda486
commit 372722ceee
2 changed files with 6 additions and 1 deletions

View File

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

View File

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