mirror of
https://github.com/kovidgoyal/kitty.git
synced 2025-12-13 20:36:22 +01:00
Fix rendering of underlines when using larger text sizes with the space and en-space characters
Fixes #8950
This commit is contained in:
@@ -162,6 +162,9 @@ Detailed list of changes
|
||||
|
||||
- Fix a regression in 0.40.0 that broke handling of the VS16 variation selector when it caused a character to flow to the next line (:iss:`8848`)
|
||||
|
||||
- Fix rendering of underlines when using larger text sizes with the space and
|
||||
en-space characters (:iss:`8950`)
|
||||
|
||||
- Wayland: Update bundled copy of libwayland to 1.24 from 1.23.1 because the
|
||||
just released mesa 25.2.0 breaks with libwayland < 1.24 (:iss:`8884`)
|
||||
|
||||
|
||||
@@ -744,7 +744,10 @@ START_ALLOW_CASE_RANGE
|
||||
if (allow_use_of_box_fonts) return BOX_FONT;
|
||||
/* fallthrough */
|
||||
default:
|
||||
if (lc->count == 1 && (lc->chars[0] == ' ' || lc->chars[0] == 0x2002 /* en-space */)) return BLANK_FONT;
|
||||
// Optimisation to avoid rendering spaces, except in the case of
|
||||
// scaled multicells as the decorations there have to rendered
|
||||
// scaled as well.
|
||||
if (lc->count == 1 && (lc->chars[0] == ' ' || lc->chars[0] == 0x2002 /* en-space */) && (!cpu_cell->is_multicell || cpu_cell->scale == 1)) return BLANK_FONT;
|
||||
*is_emoji_presentation = has_emoji_presentation(cpu_cell, lc);
|
||||
ans = in_symbol_maps(fg, lc->chars[0]);
|
||||
if (ans > -1) return ans;
|
||||
@@ -1781,7 +1784,9 @@ render_run(FontGroup *fg, CPUCell *first_cpu_cell, GPUCell *first_gpu_cell, inde
|
||||
render_groups(fg, rf, center_glyph, tc);
|
||||
break;
|
||||
case BLANK_FONT:
|
||||
while(num_cells--) { first_gpu_cell->sprite_idx = 0; first_cpu_cell++; first_gpu_cell++; }
|
||||
while (num_cells--) {
|
||||
first_gpu_cell->sprite_idx = 0; first_cpu_cell++; first_gpu_cell++;
|
||||
}
|
||||
break;
|
||||
case BOX_FONT:
|
||||
while(num_cells) {
|
||||
|
||||
Reference in New Issue
Block a user