From 5c51d528ea8ded63b127a4f17ee6136653db09b9 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 8 May 2022 11:24:51 +0300 Subject: Fix gap in builtin box drawing Builtin box drawing glyphs in range from '\u{2580}' to `\u{2587}` could have gap due to missing rounding. Previously height was rounded, however not the `y` offset. This commit fixes it. --- alacritty/src/renderer/text/builtin_font.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty/src') diff --git a/alacritty/src/renderer/text/builtin_font.rs b/alacritty/src/renderer/text/builtin_font.rs index 0922d3ef..035dfd2d 100644 --- a/alacritty/src/renderer/text/builtin_font.rs +++ b/alacritty/src/renderer/text/builtin_font.rs @@ -412,7 +412,7 @@ fn box_drawing(character: char, metrics: &Metrics, offset: &Delta) -> Raster }; // Fix `y` coordinates. - y = height - y; + y = (height - y).round(); // Ensure that resulted glyph will be visible and also round sizes instead of straight // flooring them. -- cgit