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:
parent
9a50dfc4b5
commit
40b50332de
@ -30,6 +30,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
||||
|
||||
- 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]
|
||||
----------------------
|
||||
|
||||
@ -1214,7 +1214,14 @@ render_run(FontGroup *fg, CPUCell *first_cpu_cell, GPUCell *first_gpu_cell, inde
|
||||
|
||||
static bool
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user