mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Remove busted glyph-centering code
Not sure *what* I replaced this with, but it's unnecessary now
This commit is contained in:
@@ -234,10 +234,6 @@ impl FontImpl {
|
|||||||
+ self.tweak.y_offset)
|
+ self.tweak.y_offset)
|
||||||
.round_ui();
|
.round_ui();
|
||||||
|
|
||||||
// Center scaled glyphs properly:
|
|
||||||
let height = ascent + descent;
|
|
||||||
let y_offset_points = y_offset_points - (1.0 - self.tweak.scale) * 0.5 * height;
|
|
||||||
|
|
||||||
// Round to closest pixel:
|
// Round to closest pixel:
|
||||||
let y_offset_in_points = (y_offset_points * pixels_per_point).round() / pixels_per_point;
|
let y_offset_in_points = (y_offset_points * pixels_per_point).round() / pixels_per_point;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user