Move font loading to the FontLoader

This commit is contained in:
Andrei Kortunov 2020-05-28 23:09:10 +04:00
parent f36288569c
commit 396afe79f1
5 changed files with 116 additions and 108 deletions

View file

@ -38,7 +38,7 @@ namespace Gui
std::string getFontSize()
{
// Note: we can not use the WindowManager here, so there is a code duplication a bit.
// Note: we can not use the FontLoader here, so there is a code duplication a bit.
static const std::string fontSize = std::to_string(clamp(Settings::Manager::getInt("font size", "GUI"), 12, 20));
return fontSize;
}