From bcfb05a3909b04f76aa954058d06939535010dcb Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 22 Jun 2025 13:05:00 -0600 Subject: [PATCH] Revert "Round glyph advance to integer sizes (#384)" This reverts commit 987ff45ff20f3cee1322e2f2909ac4c2c26f8321. --- src/shape.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shape.rs b/src/shape.rs index 43ba1fb..98eb730 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -1559,13 +1559,12 @@ impl ShapeLine { _ => font_size, }; - let mut x_advance = glyph_font_size * glyph.x_advance + let x_advance = glyph_font_size * glyph.x_advance + if word.blank { justification_expansion } else { 0.0 }; - x_advance = math::roundf(x_advance); if self.rtl { x -= x_advance; }