1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

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
This commit is contained in:
Joe Wilm 2017-05-06 23:09:07 -07:00
parent cbabef36ed
commit 573c5035ef

View file

@ -334,7 +334,7 @@ impl Font {
Metrics { Metrics {
average_advance: average_advance, average_advance: average_advance,
line_height: line_height, line_height: line_height,
descent: self.ct_font.descent() as f32, descent: -(self.ct_font.descent() as f32),
} }
} }