From 149fbaef09a56613c72855bc60355c7848256500 Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Wed, 3 May 2017 15:12:23 -0700 Subject: 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. --- font/src/darwin/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'font/src/darwin/mod.rs') diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index 9e92923e..cd27c6e2 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -334,6 +334,7 @@ impl Font { Metrics { average_advance: average_advance, line_height: line_height, + descent: self.ct_font.descent() as f32, } } -- cgit