Use UnicodeFont instead of TrueTypeFont.

- Fixes issue #4.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2014-08-24 14:48:27 -04:00
parent 83e486054f
commit 9a94c03b4e
4 changed files with 39 additions and 18 deletions

View File

@@ -100,11 +100,11 @@ public class MainMenuExit extends BasicGameState {
g.setFont(Utils.FONT_XLARGE);
g.drawString("1. Yes",
yesButton.getX() - (Utils.FONT_XLARGE.getWidth("1. Yes") / 2f),
yesButton.getY() - (Utils.FONT_XLARGE.getHeight() / 2f)
yesButton.getY() - (Utils.FONT_XLARGE.getLineHeight() / 2f)
);
g.drawString("2. No",
noButton.getX() - (Utils.FONT_XLARGE.getWidth("2. No") / 2f),
noButton.getY() - (Utils.FONT_XLARGE.getHeight() / 2f)
noButton.getY() - (Utils.FONT_XLARGE.getLineHeight() / 2f)
);
Utils.drawFPS();