Example usage for Java com.badlogic.gdx.graphics.g2d.freetype FreeTypeFontGenerator fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_CHARS |
FreeTypeFontGenerator(FileHandle font) Creates a new generator from the given TrueType font file. |
void | dispose() Cleans up all resources of the generator. |
FreeTypeBitmapFontData | generateData(int size) Generates a new BitmapFontData instance, expert usage only. |
FreeTypeBitmapFontData | generateData(FreeTypeFontParameter parameter) Generates a new BitmapFontData instance, expert usage only. |
BitmapFont | generateFont(int size) Generates a new BitmapFont . |
BitmapFont | generateFont(FreeTypeFontParameter parameter) Generates a new BitmapFont . |
BitmapFont | generateFont(int size, String characters, boolean flip) Generates a new BitmapFont , containing glyphs for the given characters. |
int | scaleForPixelHeight(int height) Uses ascender and descender of font to calculate real height that makes all glyphs to fit in given pixel size. |