SDL: let's not remove the candidate fallback fonts

This commit is contained in:
Hoe Hao Cheng 2023-08-23 13:38:36 +08:00
parent a5a2af4892
commit 0a5937051a

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);