1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Do not override monospace font

This commit is contained in:
Andrei Kortunov 2022-07-18 00:04:43 +04:00
parent dc0d6fe31d
commit 1f864e3127

View File

@ -628,8 +628,8 @@ namespace Gui
if (lowerName == Misc::StringUtils::lowerCase(Fallback::Map::getString("Fonts_Font_0")))
return "DefaultFont";
if (lowerName == Misc::StringUtils::lowerCase(Fallback::Map::getString("Fonts_Font_1")))
return "MonoFont";
if (lowerName == "dejavusansmono")
return "MonoFont"; // We need to use a TrueType monospace font to display debug texts properly.
if (lowerName == Misc::StringUtils::lowerCase(Fallback::Map::getString("Fonts_Font_2")))
return "ScrollFont";
@ -644,8 +644,6 @@ namespace Gui
return "DefaultFont";
if (lowerFace == "daedric")
return "ScrollFont";
if (lowerFace == "century gothic")
return "MonoFont";
return face;
}