From 6da9f00e6e038cfc084206d39113ff009aab99c4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Oct 2021 09:00:24 +0200 Subject: [PATCH] - allow "INDEXFON" as an alias for "INDEXFONT". --- src/common/fonts/v_font.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/fonts/v_font.cpp b/src/common/fonts/v_font.cpp index 1305fc413b..0042f48c3e 100644 --- a/src/common/fonts/v_font.cpp +++ b/src/common/fonts/v_font.cpp @@ -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) { @@ -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()