diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 001ef42e07..53745f367d 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -2118,10 +2118,10 @@ font_bold (Font bold by default) bool false font_italic (Font italic by default) bool false -# Shadow offset (in pixels) of the default font. If 0, then shadow will not be drawn. -font_shadow (Font shadow) int 1 0 65535 +# Shadow offset (in pixels) for all fonts. If 0, then no shadow will be drawn. +font_shadow (Font shadow) int 1 0 255 -# Opaqueness (alpha) of the shadow behind the default font, between 0 and 255. +# Opaqueness (alpha) of the shadow behind the font. font_shadow_alpha (Font shadow alpha) int 127 0 255 # Font size of the default font where 1 unit = 1 pixel at 96 DPI diff --git a/src/client/fontengine.cpp b/src/client/fontengine.cpp index 66c15308cf..8d5f6d2285 100644 --- a/src/client/fontengine.cpp +++ b/src/client/fontengine.cpp @@ -270,9 +270,8 @@ gui::IGUIFont *FontEngine::initFont(FontSpec spec) u16 font_shadow = 0; u16 font_shadow_alpha = 0; - g_settings->getU16NoEx(setting_prefix + "font_shadow", font_shadow); - g_settings->getU16NoEx(setting_prefix + "font_shadow_alpha", - font_shadow_alpha); + g_settings->getU16NoEx("font_shadow", font_shadow); + g_settings->getU16NoEx("font_shadow_alpha", font_shadow_alpha); auto createFont = [&](gui::SGUITTFace *face) -> gui::CGUITTFont* { auto *font = gui::CGUITTFont::createTTFont(m_env,