From 0a5937051a3cf05fea24162d10c2dc3ca3f2cdfd Mon Sep 17 00:00:00 2001 From: Hoe Hao Cheng Date: Wed, 23 Aug 2023 13:38:36 +0800 Subject: [PATCH] SDL: let's not remove the candidate fallback fonts --- Common/Render/Text/draw_text_sdl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Common/Render/Text/draw_text_sdl.cpp b/Common/Render/Text/draw_text_sdl.cpp index fcc1150ee9..df32f9fb6c 100644 --- a/Common/Render/Text/draw_text_sdl.cpp +++ b/Common/Render/Text/draw_text_sdl.cpp @@ -173,7 +173,6 @@ bool TextDrawerSDL::FindFallbackFonts(uint32_t missingGlyph, int ptSize) { if (TTF_GlyphIsProvided32(font, missingGlyph)) { fallbackFonts_.insert(fallbackFonts_.begin(), font); - fallbackFontPaths_.erase(fallbackFontPaths_.begin() + i); return true; } else { TTF_CloseFont(font);