[subset] proposed update to subset set apis.

This commit is contained in:
Garret Rieger 2021-08-13 10:53:20 -07:00
parent 1e1438c4fb
commit e3e1ae8766
1 changed files with 24 additions and 13 deletions

View File

@ -79,6 +79,29 @@ typedef enum { /*< flags >*/
HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES = 0x00000100u,
} hb_subset_flags_t;
/**
* hb_subset_sets_t:
* @HB_SUBSET_SETS_LAYOUT_FEATURE_TAG: the set of layout feature tags that will be retained
* in the subset.
* @HB_SUBSET_SETS_NAME_INDEX: the set of name ids that will be retained.
* @HB_SUBSET_SETS_NAME_LANG_INDEX: the set of name lang ids that will be retained.
* @HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG: the set of table tags which specifies tables that should not be
* subsetted.
* @HB_SUBSET_SETS_DROP_TABLE_TAG: the set of table tags which specifies tables which will be dropped
* in the subset.
*
* List of sets that can be configured on the subset input.
*
* Since: REPLACE
**/
typedef enum { /*< flags >*/
HB_SUBSET_SETS_LAYOUT_FEATURE_TAG = 0,
HB_SUBSET_SETS_NAME_INDEX,
HB_SUBSET_SETS_NAME_LANG_INDEX,
HB_SUBSET_SETS_NO_SUBSET_TABLE_TAG,
HB_SUBSET_SETS_DROP_TABLE_TAG,
} hb_subset_sets_t;
HB_EXTERN hb_subset_input_t *
hb_subset_input_create_or_fail (void);
@ -106,19 +129,7 @@ HB_EXTERN hb_set_t *
hb_subset_input_glyph_set (hb_subset_input_t *input);
HB_EXTERN hb_set_t *
hb_subset_input_nameid_set (hb_subset_input_t *input);
HB_EXTERN hb_set_t *
hb_subset_input_namelangid_set (hb_subset_input_t *input);
HB_EXTERN hb_set_t *
hb_subset_input_layout_features_set (hb_subset_input_t *input);
HB_EXTERN hb_set_t *
hb_subset_input_no_subset_tables_set (hb_subset_input_t *input);
HB_EXTERN hb_set_t *
hb_subset_input_drop_tables_set (hb_subset_input_t *input);
hb_subset_input_set (hb_subset_input_t *input, hb_subset_sets_t set_type);
HB_EXTERN hb_subset_flags_t
hb_subset_input_get_flags (hb_subset_input_t *input);