package pathgame; import me.hammerle.snuviengine.api.WindowView; public class BiggerFontWindowView implements WindowView { @Override public int getScale(int width, int height) { int scale = 1; while(width / (scale + 1) >= 400 && height / (scale + 1) >= 300) { scale++; } return scale; } @Override public int getFontScale(int width, int height) { return getScale(width, height) * 2; } }