From fc8d545f3bf2298c40f41fda5225eb6328fb85f6 Mon Sep 17 00:00:00 2001
From: choyunjin <[EMAIL REDACTED]>
Date: Fri, 16 Oct 2026 00:47:11 +0900
Subject: [PATCH] Make the fallback fonts use the same `ascent` value as the
main font
---
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 0cca9cf8..b9653c69 100644
--- a/src/SDL_ttf.c
+++ b/src/SDL_ttf.c
@@ -3603,7 +3603,7 @@ static bool CollectGlyphs(TTF_Font *font, const char *text, size_t length, TTF_D
// Compute positions
pos->x = x + pos->x_offset;
- pos->y = y + F26Dot6(pos->font->ascent) - pos->y_offset;
+ pos->y = y + F26Dot6(font->ascent) - pos->y_offset;
x += pos->x_advance;
y += pos->y_advance;
#if !TTF_USE_HARFBUZZ