From c45e8b32d04cfbc8b79b7b6931a50bedf309603b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 16 Oct 2019 10:31:34 +0300 Subject: [PATCH] - fallback to console font in case of missing small font https://forum.zdoom.org/viewtopic.php?t=66102 --- src/gamedata/fonts/v_font.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gamedata/fonts/v_font.cpp b/src/gamedata/fonts/v_font.cpp index ecccaf17f..31f984f28 100644 --- a/src/gamedata/fonts/v_font.cpp +++ b/src/gamedata/fonts/v_font.cpp @@ -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;