public class LibgdxFonts extends Fonts
| Constructor and Description |
|---|
LibgdxFonts() |
| Modifier and Type | Method and Description |
|---|---|
GameFont |
defaultFont()
|
GameFont |
newBitmapFont(FileHandle fntFileHandle)
Loads a font made using BMFont
|
GameFont |
newPlatformFont(FileHandle fileHandle)
Loads a font using the current
Platform's native format. |
GameFont |
newTrueTypeFont(FileHandle fileHandle)
Loads a new TrueType font
|
newMonospaceFontpublic GameFont defaultFont()
FontsdefaultFont in class Fontspublic GameFont newPlatformFont(FileHandle fileHandle)
FontsPlatform's native format.
Note that the file type support and rendering made be inconsistent across platforms when using this.
It is mainly used to get up and running quickly before switching to a bitmap or monospace font.newPlatformFont in class FontsfileHandle - The FileHandle for the fileGameFont instancepublic GameFont newTrueTypeFont(FileHandle fileHandle)
FontsnewTrueTypeFont in class FontsfileHandle - A .ttf fileGameFont instancepublic GameFont newBitmapFont(FileHandle fntFileHandle)
FontsnewBitmapFont in class FontsfntFileHandle - A .fnt fileGameFont instance