From 053bbc89517471427748a082583c9eada55c07b5 Mon Sep 17 00:00:00 2001
From: ProPuke <[EMAIL REDACTED]>
Date: Thu, 12 Feb 2026 22:55:15 +0000
Subject: [PATCH] fixed: sdf characters were misaligned (char rects were not
expanded to the bottom right to include sdf spread)
---
src/SDL_ttf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 353652c7..bb2092ad 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -1504,8 +1504,6 @@ static bool Render_Line_TextEngine(TTF_Font *font, TTF_Direction direction, int
if (glyph_font->render_sdf) {
op->copy.dst.x -= DEFAULT_SDF_SPREAD;
op->copy.dst.y -= DEFAULT_SDF_SPREAD;
- op->copy.dst.w -= DEFAULT_SDF_SPREAD;
- op->copy.dst.h -= DEFAULT_SDF_SPREAD;
}
} else {
// Use the distance to the next glyph as our bounds width