aboutsummaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-22 17:16:54 +0000
committerGitHub <noreply@github.com>2018-12-22 17:16:54 +0000
commit2f9b815ebdcee4558284e5e9cef6ef282dc87b08 (patch)
tree09bf03e5c69d9e7e99e04ff55983ea5774435b86 /font/src/lib.rs
parentdad44134e2546dffec918a00169d32c6f9edc709 (diff)
downloadalacritty-2f9b815ebdcee4558284e5e9cef6ef282dc87b08.tar.gz
alacritty-2f9b815ebdcee4558284e5e9cef6ef282dc87b08.zip
Add proper underline and strikeout support
This makes use of the new rectangle rendering methods used to display the colored visual bell to add proper underline and strikeout support to Alacritty.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 1db08217..fdba4b87 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -336,6 +336,10 @@ pub struct Metrics {
pub average_advance: f64,
pub line_height: f64,
pub descent: f32,
+ pub underline_position: f32,
+ pub underline_thickness: f32,
+ pub strikeout_position: f32,
+ pub strikeout_thickness: f32,
}
pub trait Rasterize {