[config] Add HB_NO_LANGUAGE_PRIVATE_SUBTAG

Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
Behdad Esfahbod 2019-06-19 16:37:35 -07:00
parent f642a5fa6c
commit 971330c058
2 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,7 @@
#define HB_NO_CFF
#define HB_NO_COLOR
#define HB_NO_GETENV
#define HB_NO_LANGUAGE_PRIVATE_SUBTAG
#define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH
#define HB_NO_MMAP

View File

@ -305,6 +305,10 @@ parse_private_use_subtag (const char *private_use_subtag,
const char *prefix,
unsigned char (*normalize) (unsigned char))
{
#ifdef HB_NO_LANGUAGE_PRIVATE_SUBTAG
return false;
#endif
if (!(private_use_subtag && count && tags && *count)) return false;
const char *s = strstr (private_use_subtag, prefix);