From 8565484e29c42a76f45bcf94688601d168e2efa4 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 1 Jun 2013 02:04:44 +0000 Subject: [PATCH] - Heretic and Hexen can now have their big fonts overridden by a font named "HBIGFONT". In addition, a font named "BIGFONT" will override the big font for every game. SVN r4302 (trunk) --- src/v_font.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/v_font.cpp b/src/v_font.cpp index fad3243e0..d34b08be5 100644 --- a/src/v_font.cpp +++ b/src/v_font.cpp @@ -2649,7 +2649,12 @@ void V_InitFonts() } if (!(BigFont = FFont::FindFont("BigFont"))) { - if (gameinfo.gametype & GAME_DoomChex) + int lump = Wads.CheckNumForName("BIGFONT"); + if (lump >= 0) + { + BigFont = new FSingleLumpFont("BigFont", lump); + } + else if (gameinfo.gametype & GAME_DoomChex) { BigFont = new FSingleLumpFont ("BigFont", Wads.GetNumForName ("DBIGFONT")); } @@ -2659,7 +2664,15 @@ void V_InitFonts() } else { - BigFont = new FFont ("BigFont", "FONTB%02u", HU_FONTSTART, HU_FONTSIZE, 1, -1); + lump = Wads.CheckNumForName("HBIGFONT"); + if (lump >= 0) + { + BigFont = new FSingleLumpFont("BigFont", lump); + } + else + { + BigFont = new FFont ("BigFont", "FONTB%02u", HU_FONTSTART, HU_FONTSIZE, 1, -1); + } } } if (!(ConFont = FFont::FindFont("ConsoleFont")))