From dda5ecb7ce0059407b873ec3297a19cb0ffc6749 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)
(cherry picked from commit 053bbc89517471427748a082583c9eada55c07b5)
---
src/SDL_ttf.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 2cfe90e2..8a2f60e4 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -1503,8 +1503,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