diff options
author | Joe Wilm <joe@jwilm.com> | 2017-05-03 15:12:23 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-06 12:53:54 -0700 |
commit | 149fbaef09a56613c72855bc60355c7848256500 (patch) | |
tree | 89bb581b2135c702e2f8c03772bf9ddd4470ac8f /font/src/darwin | |
parent | 6659810a22e62f8b41d7bc35ed07905ccebda68b (diff) |
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/darwin')
-rw-r--r-- | font/src/darwin/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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, } } |