Example usage for com.badlogic.gdx.graphics.g2d BitmapFont setFixedWidthGlyphs

List of usage examples for com.badlogic.gdx.graphics.g2d BitmapFont setFixedWidthGlyphs

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d BitmapFont setFixedWidthGlyphs.

Prototype

public void setFixedWidthGlyphs(CharSequence glyphs) 

Source Link

Document

Makes the specified glyphs fixed width.

Usage

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;
}