Remove 1px horizontal offset on pixel fonts

This commit is contained in:
Josh Ricker-Rampersad (jrampersad_pins) 2026-03-31 12:09:25 -04:00 committed by Jeremy Soller
parent 1abcf67e17
commit 463387d6a1

View file

@ -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 {