From 2a31090542f49c0d36e7b13892be93aca4bf6476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 9 Nov 2015 11:45:47 +0100 Subject: RustAndDust: add font size computation --- core/src/ch/asynk/rustanddust/RustAndDust.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1-2-g2b99