aboutsummaryrefslogtreecommitdiff
path: root/font/src/lib.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-05-03 15:12:23 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-05-06 12:53:54 -0700
commit149fbaef09a56613c72855bc60355c7848256500 (patch)
tree89bb581b2135c702e2f8c03772bf9ddd4470ac8f /font/src/lib.rs
parent6659810a22e62f8b41d7bc35ed07905ccebda68b (diff)
downloadr-alacritty-149fbaef09a56613c72855bc60355c7848256500.tar.gz
r-alacritty-149fbaef09a56613c72855bc60355c7848256500.tar.bz2
r-alacritty-149fbaef09a56613c72855bc60355c7848256500.zip
Fix glyph offsets in cell
We previously had a hard-coded value for aligning glyphs within cells. The font descent is now used, and the offset should be correct by default.
Diffstat (limited to 'font/src/lib.rs')
-rw-r--r--font/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/font/src/lib.rs b/font/src/lib.rs
index 292e2244..8428ec18 100644
--- a/font/src/lib.rs
+++ b/font/src/lib.rs
@@ -219,6 +219,7 @@ impl fmt::Debug for RasterizedGlyph {
pub struct Metrics {
pub average_advance: f64,
pub line_height: f64,
+ pub descent: f32,
}
pub trait Rasterize {