Do not override monospace font

LTO-timing^2
Andrei Kortunov 2 years ago
parent dc0d6fe31d
commit 1f864e3127

@ -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;
}

Loading…
Cancel
Save