mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 23:54:20 +02:00
Fix modify_font underline_position 1
This commit is contained in:
@@ -392,7 +392,7 @@ calc_cell_metrics(FontGroup *fg) {
|
||||
|
||||
underline_position = MIN(cell_height - 1, underline_position);
|
||||
// ensure there is at least a couple of pixels available to render styled underlines
|
||||
while (underline_position > baseline + 1 && cell_height - underline_position < 2) underline_position--;
|
||||
while (underline_position > baseline + 1 && cell_height - underline_position < 1) underline_position--;
|
||||
if (line_height_adjustment > 1) {
|
||||
baseline += MIN(cell_height - 1, (unsigned)line_height_adjustment / 2);
|
||||
underline_position += MIN(cell_height - 1, (unsigned)line_height_adjustment / 2);
|
||||
|
||||
Reference in New Issue
Block a user