mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-12 16:23:01 +00:00
[config] Add HB_NO_LANGUAGE_PRIVATE_SUBTAG
Part of https://github.com/harfbuzz/harfbuzz/issues/1652
This commit is contained in:
parent
f642a5fa6c
commit
971330c058
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue