- fallback to console font in case of missing small font

https://forum.zdoom.org/viewtopic.php?t=66102
This commit is contained in:
alexey.lysiuk 2019-10-16 10:31:34 +03:00 committed by Christoph Oelckers
parent d44d91d6a4
commit c45e8b32d0

View file

@ -1719,6 +1719,10 @@ void V_InitFonts()
I_FatalError("Console font not found.");
}
// SmallFont and SmallFont2 have no default provided by the engine. BigFont only has in non-Raven games.
if (OriginalSmallFont == nullptr)
{
OriginalSmallFont = ConFont;
}
if (SmallFont == nullptr)
{
SmallFont = OriginalSmallFont;