Add HB_FEATURE_GLOBAL_START/END

Fixes https://github.com/harfbuzz/harfbuzz/issues/1141

New API:
HB_FEATURE_GLOBAL_START
HB_FEATURE_GLOBAL_END
This commit is contained in:
Behdad Esfahbod committed 2018-09-11 01:27:25 +02:00
1 parent 13a8786c7c
commit becd84aa2f
3 files changed
+17 -2

No files matched your search

+2
View File
@@ -582,6 +582,8 @@ hb_set_union
<SECTION>
<FILE>hb-shape</FILE>
HB_FEATURE_GLOBAL_END
HB_FEATURE_GLOBAL_START
hb_feature_t
hb_feature_from_string
hb_feature_to_string
+2 -2
View File
@@ -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;
+13
View File
@@ -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;