From 8ff888422ef4fbf13410afbe2321ff34addf6f97 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 16 Feb 2020 13:52:44 +0100 Subject: [PATCH] - force Greek to use the standard font in Heretic and Hexen. Unlike the other games where only 7 characters need to be added to their all caps fonts, for the Raven games' lowercase fonts all Greek characters need to be entirely redone which right now is entirely unrealistic. This can be changed back once a workable font exists. --- src/g_cvars.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/g_cvars.cpp b/src/g_cvars.cpp index cff4ec1d8..db029c566 100644 --- a/src/g_cvars.cpp +++ b/src/g_cvars.cpp @@ -40,6 +40,7 @@ #include "i_system.h" #include "v_font.h" #include "utf8.h" +#include "gi.h" void I_UpdateWindowTitle(); @@ -153,6 +154,7 @@ CUSTOM_CVAR(Float, teamdamage, 0.f, CVAR_SERVERINFO | CVAR_NOINITCALL) } bool generic_ui; +EXTERN_CVAR(String, language) bool CheckFontComplete(FFont *font) { @@ -164,7 +166,7 @@ bool CheckFontComplete(FFont *font) void UpdateGenericUI(bool cvar) { auto switchstr = GStrings["USE_GENERIC_FONT"]; - generic_ui = (cvar || (switchstr && strtoll(switchstr, nullptr, 0))); + generic_ui = (cvar || (switchstr && strtoll(switchstr, nullptr, 0)) || ((gameinfo.gametype & GAME_Raven) && !strnicmp(language, "el", 2))); if (!generic_ui) { // Use the mod's SmallFont if it is complete.