diff options
author | Joe Wilm <joe@jwilm.com> | 2017-05-06 23:09:07 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2017-05-06 23:09:07 -0700 |
commit | 573c5035efaf486a3fc56c05115df456fe053143 (patch) | |
tree | b96e988d0b02f2cf8321cce689516f3cce31cfaa /font/src | |
parent | cbabef36edd39e179391685bc9368d92df1d5a01 (diff) | |
download | alacritty-573c5035efaf486a3fc56c05115df456fe053143.tar.gz alacritty-573c5035efaf486a3fc56c05115df456fe053143.zip |
Fix sign error in CoreText font rasterizer
Descent was being reported as a positive value instead of negative. This
caused the background and text alignment to be off dramatically.
Resolves #545
Diffstat (limited to 'font/src')
-rw-r--r-- | font/src/darwin/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/font/src/darwin/mod.rs b/font/src/darwin/mod.rs index cd27c6e2..3ced7524 100644 --- a/font/src/darwin/mod.rs +++ b/font/src/darwin/mod.rs @@ -334,7 +334,7 @@ impl Font { Metrics { average_advance: average_advance, line_height: line_height, - descent: self.ct_font.descent() as f32, + descent: -(self.ct_font.descent() as f32), } } |