mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- 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.
This commit is contained in:
parent
653336de24
commit
8ff888422e
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue