mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- 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)
This commit is contained in:
parent
890dc71e0d
commit
8565484e29
1 changed files with 15 additions and 2 deletions
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue