SDL: let's not remove the candidate fallback fonts

This commit is contained in:
Hoe Hao Cheng committed 2023-08-23 13:39:16 +08:00
1 parent a5a2af4892
commit 0a5937051a
1 file changed
-1
-1
View File
@@ -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);