1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add configurable font shadow.

This commit is contained in:
Ilya Zhuravlev 2013-12-12 21:47:54 +04:00
parent 4ccaa6d0af
commit 76036abdb0
5 changed files with 20 additions and 3 deletions

View file

@ -1481,7 +1481,8 @@ int main(int argc, char *argv[])
fallback = "fallback_";
u16 font_size = g_settings->getU16(fallback + "font_size");
font_path = g_settings->get(fallback + "font_path");
font = gui::CGUITTFont::createTTFont(guienv, font_path.c_str(), font_size);
u32 font_shadow = g_settings->getU16(fallback + "font_shadow");
font = gui::CGUITTFont::createTTFont(guienv, font_path.c_str(), font_size, true, true, font_shadow);
} else {
font = guienv->getFont(font_path.c_str());
}