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
|
newMonospaceFont
public GameFont defaultFont()
Fonts
defaultFont
in class Fonts
public GameFont newPlatformFont(FileHandle fileHandle)
Fonts
Platform
'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 Fonts
fileHandle
- The FileHandle
for the fileGameFont
instancepublic GameFont newTrueTypeFont(FileHandle fileHandle)
Fonts
newTrueTypeFont
in class Fonts
fileHandle
- A .ttf fileGameFont
instancepublic GameFont newBitmapFont(FileHandle fntFileHandle)
Fonts
newBitmapFont
in class Fonts
fntFileHandle
- A .fnt fileGameFont
instance