aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2022-05-08 11:24:51 +0300
committerGitHub <noreply@github.com>2022-05-08 11:24:51 +0300
commit5c51d528ea8ded63b127a4f17ee6136653db09b9 (patch)
tree70858ac41cef70f56a5cdca01d8fdba5eefe1804 /alacritty/src
parentad3ebba53233fdc61584b341be970a1828d09013 (diff)
downloadr-alacritty-5c51d528ea8ded63b127a4f17ee6136653db09b9.tar.gz
r-alacritty-5c51d528ea8ded63b127a4f17ee6136653db09b9.tar.bz2
r-alacritty-5c51d528ea8ded63b127a4f17ee6136653db09b9.zip
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.
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/renderer/text/builtin_font.rs2
1 files changed, 1 insertions, 1 deletions
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<i8>) -> 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.