diff --git a/docs/harfbuzz-sections.txt b/docs/harfbuzz-sections.txt index ca0e908fe..b69c16860 100644 --- a/docs/harfbuzz-sections.txt +++ b/docs/harfbuzz-sections.txt @@ -582,6 +582,8 @@ hb_set_union
hb-shape +HB_FEATURE_GLOBAL_END +HB_FEATURE_GLOBAL_START hb_feature_t hb_feature_from_string hb_feature_to_string diff --git a/src/hb-common.cc b/src/hb-common.cc index ed3fed2a3..c1651232a 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -877,8 +877,8 @@ parse_feature_indices (const char **pp, const char *end, hb_feature_t *feature) bool has_start; - feature->start = 0; - feature->end = (unsigned int) -1; + feature->start = HB_FEATURE_GLOBAL_START; + feature->end = HB_FEATURE_GLOBAL_END; if (!parse_char (pp, end, '[')) return true; diff --git a/src/hb-common.h b/src/hb-common.h index 5dc1ebcd2..fdceff9dc 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -379,6 +379,19 @@ typedef void (*hb_destroy_func_t) (void *user_data); /* Font features and variations. */ +/** + * HB_FEATURE_GLOBAL_START + * + * Since: REPLACEME + */ +#define HB_FEATURE_GLOBAL_START 0 +/** + * HB_FEATURE_GLOBAL_END + * + * Since: REPLACEME + */ +#define HB_FEATURE_GLOBAL_END ((unsigned int) -1) + typedef struct hb_feature_t { hb_tag_t tag; uint32_t value;