List of usage examples for com.badlogic.gdx.graphics.g2d BitmapFont setFixedWidthGlyphs
public void setFixedWidthGlyphs(CharSequence glyphs)
From source file:name.herve.bastod.guifwk.GUIResources.java
License:Open Source License
public static BitmapFont createFont(String file, int size, Color color) { BitmapFont font = TrueTypeFontFactory.createBitmapFont(Gdx.files.internal(file), FONT_CHARACTERS, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), size, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());/*from w w w . j av a2 s.c om*/ font.setColor(color); font.setUseIntegerPositions(true); font.setFixedWidthGlyphs(SCORE_CHARACTERS); return font; }