Skip to content

Commit

Permalink
- allow "INDEXFON" as an alias for "INDEXFONT".
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 3, 2021
1 parent 457f7c3 commit 6da9f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/fonts/v_font.cpp
Expand Up @@ -94,6 +94,7 @@ FFont *V_GetFont(const char *name, const char *fontlumpname)
{
if (!stricmp(name, "DBIGFONT")) name = "BigFont";
else if (!stricmp(name, "CONFONT")) name = "ConsoleFont"; // several mods have used the name CONFONT directly and effectively duplicated the font.
else if (!stricmp(name, "INDEXFON")) name = "IndexFont"; // Same here - for whatever reason some people had to use its 8 character name...
FFont *font = FFont::FindFont (name);
if (font == nullptr)
{
Expand Down Expand Up @@ -873,6 +874,7 @@ void V_InitFonts()
NewSmallFont = CreateHexLumpFont2("NewSmallFont", lump);
CurrentConsoleFont = NewConsoleFont;
ConFont = V_GetFont("ConsoleFont", "CONFONT");
V_GetFont("IndexFont", "INDEXFON"); // detect potential replacements for this one.
}

void V_LoadTranslations()
Expand Down

0 comments on commit 6da9f00

Please sign in to comment.