SDL_ttf: Fixed bug #493 - last glyph is cropped

From c3cd04ca4363cb93fa19f2f27895dfe7ec781ad5 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 30 Jan 2025 09:57:32 +0100
Subject: [PATCH] Fixed bug #493 - last glyph is cropped

---
 src/SDL_ttf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SDL_ttf.c b/src/SDL_ttf.c
index 1d2635af..4ccce8c5 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3621,7 +3621,7 @@ static bool TTF_Size_Internal(TTF_Font *font, const char *text, size_t length, T
     }
 
     if (positions->len > 0) {
-        minx = INT_MAX;
+        minx = 0;
         maxx = INT_MIN;
         miny = 0;
         maxy = font->height;