From 463387d6a1ff5946403842dc41b017f10eb3c953 Mon Sep 17 00:00:00 2001 From: "Josh Ricker-Rampersad (jrampersad_pins)" Date: Tue, 31 Mar 2026 12:09:25 -0400 Subject: [PATCH] Remove 1px horizontal offset on pixel fonts --- src/swash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swash.rs b/src/swash.rs index 8ff411a..e046ded 100644 --- a/src/swash.rs +++ b/src/swash.rs @@ -44,7 +44,7 @@ fn swash_image( // in a real renderer let offset = if cache_key.flags.contains(CacheKeyFlags::PIXEL_FONT) { Vector::new( - cache_key.x_bin.as_float().round() + 1.0, + cache_key.x_bin.as_float().round(), cache_key.y_bin.as_float().round(), ) } else {