From 6c0962c5c366879877efc7b9fba7a32a7a4c777a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 28 May 2025 21:02:45 +0200 Subject: [PATCH] Snap text to the pixel grid on the X axis in `iced_wgpu` --- wgpu/src/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/text.rs b/wgpu/src/text.rs index f2908e71..3ec5447b 100644 --- a/wgpu/src/text.rs +++ b/wgpu/src/text.rs @@ -621,7 +621,7 @@ fn prepare( Some(cryoglyph::TextArea { buffer, - left: position.x, + left: position.x.round(), top: position.y, scale: transformation.scale_factor() * layer_transformation.scale_factor(),