Fix space ligatures not working with Iosevka for some characters in the Enclosed Alphanumeric Supplement

Recognize chars in this block as non-emoji dingbats to turn on space
ligatures for them

Fixes #3954
This commit is contained in:
Kovid Goyal 2021-08-19 22:28:07 +05:30
parent 9a50dfc4b5
commit 40b50332de
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 11 additions and 1 deletions

View File

@ -30,6 +30,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- broadcast kitten: Allow broadcasting :kbd:`ctrl+c` (:pull:`3956`) - broadcast kitten: Allow broadcasting :kbd:`ctrl+c` (:pull:`3956`)
- Fix space ligatures not working with Iosevka for some characters in the
Enclosed Alphanumeric Supplement (:iss:`3954`)
0.23.1 [2021-08-17] 0.23.1 [2021-08-17]
---------------------- ----------------------

View File

@ -1214,7 +1214,14 @@ render_run(FontGroup *fg, CPUCell *first_cpu_cell, GPUCell *first_gpu_cell, inde
static bool static bool
is_non_emoji_dingbat(char_type ch) { is_non_emoji_dingbat(char_type ch) {
return 0x2700 <= ch && ch <= 0x27bf && !is_emoji(ch); switch(ch) {
START_ALLOW_CASE_RANGE
case 0x2700 ... 0x27bf:
case 0x1f100 ... 0x1f1ff:
return !is_emoji(ch);
END_ALLOW_CASE_RANGE
}
return false;
} }
void void