summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2020-01-22 23:47:59 +0300
committerGitHub <noreply@github.com>2020-01-22 23:47:59 +0300
commite61c28e451526d396131b0a1e9598705d56b2714 (patch)
tree79bebb5a617a80fedafc44660edd3f457def5d63 /font
parent767d59155a5d834d22ccb7c7d439b418ffad5404 (diff)
downloadalacritty-e61c28e451526d396131b0a1e9598705d56b2714.tar.gz
alacritty-e61c28e451526d396131b0a1e9598705d56b2714.zip
Fix underline position for bitmap fonts
Fixes #3235.
Diffstat (limited to 'font')
-rw-r--r--font/src/ft/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index 5c5c4a73..f91acd03 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -108,7 +108,7 @@ impl Rasterize for FreeTypeRasterizer {
// Fallback for bitmap fonts which do not provide underline metrics
if underline_position == 0. {
- underline_thickness = (descent / 5.).round();
+ underline_thickness = (descent.abs() / 5.).round();
underline_position = descent / 2.;
}