diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 11:45:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-11-09 11:45:47 +0100 |
commit | 2a31090542f49c0d36e7b13892be93aca4bf6476 (patch) | |
tree | 3619ec8d283f1d1027dd40f4cf21513e34cf1028 /core/src/ch | |
parent | c7e871e749e6531deb3b49311e0c5b71523aeff8 (diff) | |
download | RustAndDust-2a31090542f49c0d36e7b13892be93aca4bf6476.zip RustAndDust-2a31090542f49c0d36e7b13892be93aca4bf6476.tar.gz |
RustAndDust: add font size computation
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/RustAndDust.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index 9c91efe..aed90cc 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -151,7 +151,7 @@ public class RustAndDust extends Game uiAtlas = manager.get("data/ui.atlas", TextureAtlas.class); FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal("skin/veteran-typewriter.ttf")); FreeTypeFontParameter parameter = new FreeTypeFontParameter(); - parameter.size = 20; + parameter.size = Math.max((int) (Gdx.graphics.getHeight() * 0.04f), 15); parameter.color = Color.BLACK; fontB = generator.generateFont(parameter); parameter.color = Color.WHITE; |