fix: font crash when switching languages

thank you perky
This commit is contained in:
Fireblade
2026-07-08 18:28:45 -04:00
parent 9f5de77d3f
commit e6085e1890
@@ -514,9 +514,12 @@ void UIController::SetupFont()
}
else
{
//removed this cause it caused a crash when switching from custom font to bitmap font but not when loading the game with font selected, needs a deeper look
#if 0
app.DebugPrintf("[Iggy] Set font indirect to '%hs'.\n", m_mcTTFFont->getFontName().c_str());
IggyFontSetIndirectUTF8( "Mojangles7", -1, IGGY_FONTFLAG_all, m_mcTTFFont->getFontName().c_str(), -1, IGGY_FONTFLAG_none );
IggyFontSetIndirectUTF8( "Mojangles11", -1, IGGY_FONTFLAG_all, m_mcTTFFont->getFontName().c_str(), -1, IGGY_FONTFLAG_none );
#endif
}
}
else