Skip to content

Commit

Permalink
Increase default font size by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Stevenson authored and est31 committed Sep 21, 2016
1 parent abb6fba commit 679c8de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions builtin/settingtypes.txt
Expand Up @@ -561,13 +561,13 @@ freetype (Freetype fonts) bool true
# Path to TrueTypeFont or bitmap.
font_path (Font path) path fonts/liberationsans.ttf

font_size (Font size) int 15
font_size (Font size) int 16

# Font shadow offset, if 0 then shadow will not be drawn.
font_shadow (Font shadow) int 1

# Font shadow alpha (opaqueness, between 0 and 255).
font_shadow_alpha (Font shadow alpha) int 128 0 255
font_shadow_alpha (Font shadow alpha) int 127 0 255

mono_font_path (Monospace font path) path fonts/liberationmono.ttf

Expand Down
4 changes: 2 additions & 2 deletions minetest.conf.example
Expand Up @@ -655,15 +655,15 @@
# font_path = fonts/liberationsans.ttf

# type: int
# font_size = 15
# font_size = 16

# Font shadow offset, if 0 then shadow will not be drawn.
# type: int
# font_shadow = 1

# Font shadow alpha (opaqueness, between 0 and 255).
# type: int min: 0 max: 255
# font_shadow_alpha = 128
# font_shadow_alpha = 127

# type: path
# mono_font_path = fonts/liberationmono.ttf
Expand Down
2 changes: 1 addition & 1 deletion src/constants.h
Expand Up @@ -112,7 +112,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#if defined(_WIN32)
#define TTF_DEFAULT_FONT_SIZE (18)
#else
#define TTF_DEFAULT_FONT_SIZE (15)
#define TTF_DEFAULT_FONT_SIZE (16)
#endif
#define DEFAULT_FONT_SIZE (10)

Expand Down
2 changes: 1 addition & 1 deletion src/defaultsettings.cpp
Expand Up @@ -213,7 +213,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("freetype", "true");
settings->setDefault("font_path", porting::getDataPath("fonts" DIR_DELIM "liberationsans.ttf"));
settings->setDefault("font_shadow", "1");
settings->setDefault("font_shadow_alpha", "128");
settings->setDefault("font_shadow_alpha", "127");
settings->setDefault("mono_font_path", porting::getDataPath("fonts" DIR_DELIM "liberationmono.ttf"));
settings->setDefault("fallback_font_path", porting::getDataPath("fonts" DIR_DELIM "DroidSansFallbackFull.ttf"));

Expand Down

0 comments on commit 679c8de

Please sign in to comment.