From 91d3384a6cc22ad9e6cfce26fed8ced95edecf6e Mon Sep 17 00:00:00 2001 From: valadaptive Date: Sun, 7 Sep 2025 21:38:10 -0400 Subject: [PATCH] Remove busted glyph-centering code Not sure *what* I replaced this with, but it's unnecessary now --- crates/epaint/src/text/font.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/epaint/src/text/font.rs b/crates/epaint/src/text/font.rs index 767c22fd7..c29a4c1c7 100644 --- a/crates/epaint/src/text/font.rs +++ b/crates/epaint/src/text/font.rs @@ -234,10 +234,6 @@ impl FontImpl { + self.tweak.y_offset) .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: let y_offset_in_points = (y_offset_points * pixels_per_point).round() / pixels_per_point;