Switch to UTF-8 for overlay text rendering

This commit is contained in:
Cameron Gutman
2026-07-01 23:24:15 -05:00
parent 177f845183
commit 9067db8915
+2 -2
View File
@@ -174,9 +174,9 @@ SDL_Surface* OverlayManager::RenderTextOutlinedWrapped(TTF_Font* font, const cha
// Draw text twice, but outline is a bit bigger
int oldOutline = TTF_GetFontOutline(font);
TTF_SetFontOutline(font, outlineWidth);
auto outlineSurface = TTF_RenderText_Blended_Wrapped(font, text, outlineColor, wrapWidth);
auto outlineSurface = TTF_RenderUTF8_Blended_Wrapped(font, text, outlineColor, wrapWidth);
TTF_SetFontOutline(font, 0);
auto textSurface = TTF_RenderText_Blended_Wrapped(font, text, textColor, wrapWidth);
auto textSurface = TTF_RenderUTF8_Blended_Wrapped(font, text, textColor, wrapWidth);
TTF_SetFontOutline(font, oldOutline);
if (outlineSurface == nullptr || textSurface == nullptr) {