diff options
Diffstat (limited to 'settings.c')
-rw-r--r-- | settings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/settings.c b/settings.c index 91213d02a..86d73191c 100644 --- a/settings.c +++ b/settings.c @@ -38,6 +38,10 @@ #include "newgrf.h" #include "genworld.h" #include "date.h" +#ifdef WITH_FREETYPE +#include "gfx.h" +#include "fontcache.h" +#endif /** The patch values that are used for new games and/or modified in config file */ Patches _patches_newgame; @@ -1186,6 +1190,14 @@ static const SettingDescGlobVarList _misc_settings[] = { SDTG_STR("screenshot_format",SLE_STRB, S, 0, _screenshot_format_name,NULL, STR_NULL, NULL), SDTG_STR("savegame_format", SLE_STRB, S, 0, _savegame_format, NULL, STR_NULL, NULL), SDTG_BOOL("rightclick_emulate", S, 0, _rightclick_emulate, false, STR_NULL, NULL), +#ifdef WITH_FREETYPE + SDTG_STR("small_font", SLE_STRB, S, 0, _freetype.small_font, NULL, STR_NULL, NULL), + SDTG_STR("medium_font", SLE_STRB, S, 0, _freetype.medium_font, NULL, STR_NULL, NULL), + SDTG_STR("large_font", SLE_STRB, S, 0, _freetype.large_font, NULL, STR_NULL, NULL), + SDTG_VAR("small_size", SLE_UINT, S, 0, _freetype.small_size, 6, 0, 72, 0, STR_NULL, NULL), + SDTG_VAR("medium_size", SLE_UINT, S, 0, _freetype.medium_size, 10, 0, 72, 0, STR_NULL, NULL), + SDTG_VAR("large_size", SLE_UINT, S, 0, _freetype.large_size, 16, 0, 72, 0, STR_NULL, NULL), +#endif SDTG_END() }; |