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
1 changed files with 1 additions and 1 deletions

View File

@ -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),
}
}