Fix non-renderable combining chars causing some text to not be rendered on Linux

The test for non-renderable chars was broken and the variation selectors
were not included in the test. Fixes #4444
This commit is contained in:
Kovid Goyal
2022-01-05 22:33:53 +05:30
parent a574081012
commit e8b19e08fa
4 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -699,7 +699,7 @@ is_ignored_char(char_type code) {
bool
is_non_rendered_char(char_type code) {
// Other_Default_Ignorable_Code_Point and soft hyphen (6052 codepoints) {{{
// Other_Default_Ignorable_Code_Point and soft hyphen (6068 codepoints) {{{
if (LIKELY(0x20 <= code && code <= 0x7e)) return false;
switch(code) {
case 0x0 ... 0x1f:
@@ -738,6 +738,8 @@ is_non_rendered_char(char_type code) {
return true;
case 0xd800 ... 0xdfff:
return true;
case 0xfe00 ... 0xfe0f:
return true;
case 0xfeff:
return true;
case 0xffa0: