macOS: Fix finding fallback font for private use unicode symbols not working reliably

Fixes #1650
This commit is contained in:
Kovid Goyal
2019-06-30 18:11:58 +05:30
parent 75d697fa97
commit 1fcd6e1811
4 changed files with 82 additions and 23 deletions

View File

@@ -24,3 +24,8 @@ can_strip_from_end_of_url(uint32_t ch) {
ch == '>'
) ? true : false;
}
static inline bool
is_private_use(char_type ch) {
return (0xe000 <= ch && ch <= 0xf8ff) || (0xF0000 <= ch && ch <= 0xFFFFF) || (0x100000 <= ch && ch <= 0x10FFFF);
}