mirror of
https://github.com/alacritty/alacritty.git
synced 2025-04-21 18:02:37 -04: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:
parent
cbabef36ed
commit
573c5035ef
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue