mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Allow space at the end of feature string with values, eg 'dlig=1 '
This commit is contained in:
1 parent
f31f7d2259
commit
3f64618474
1 file changed
+3
-1
+3
-1
@@ -34,12 +34,13 @@
|
||||
#include "hb-font-private.hh"
|
||||
|
||||
|
||||
static void
|
||||
static bool
|
||||
parse_space (const char **pp, const char *end)
|
||||
{
|
||||
char c;
|
||||
while (*pp < end && (c = **pp, ISSPACE (c)))
|
||||
(*pp)++;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
@@ -174,6 +175,7 @@ parse_one_feature (const char **pp, const char *end, hb_feature_t *feature)
|
||||
parse_feature_tag (pp, end, feature) &&
|
||||
parse_feature_indices (pp, end, feature) &&
|
||||
parse_feature_value_postfix (pp, end, feature) &&
|
||||
parse_space (pp, end) &&
|
||||
*pp == end;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user