mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 00:59:16 +01:00
Fix parsing of features like "- liga" (with the space)
This commit is contained in:
1 parent
e15fa7a8cf
commit
2ee5f665de
1 file changed
+2
-2
+2
-2
@@ -94,11 +94,11 @@ parse_feature_value_prefix (const char **pp, const char *end, hb_feature_t *feat
|
||||
static hb_bool_t
|
||||
parse_feature_tag (const char **pp, const char *end, hb_feature_t *feature)
|
||||
{
|
||||
parse_space (pp, end);
|
||||
|
||||
const char *p = *pp;
|
||||
char c;
|
||||
|
||||
parse_space (pp, end);
|
||||
|
||||
#define ISALNUM(c) (('a' <= (c) && (c) <= 'z') || ('A' <= (c) && (c) <= 'Z') || ('0' <= (c) && (c) <= '9'))
|
||||
while (*pp < end && (c = **pp, ISALNUM(c)))
|
||||
(*pp)++;
|
||||
|
||||
Reference in new issue
Block a user