This class holds the data needed to display a text in the a certain font.
- Author
- Ramses Di Perna
◆ FontData()
com.mygdx.game.engine.entities.FontData.FontData |
( |
String |
fontLocation, |
|
|
String |
fontPngLocation |
|
) |
| |
Loads the font data from the given locations and creates a BitmapFont for it.
- Parameters
-
fontLocation | is the location of the .fnt file for the font |
fontPngLocation | is the location of the .png file for the font |
◆ clean()
void com.mygdx.game.engine.entities.FontData.clean |
( |
| ) |
|
Cleans the class and makes it ready for garbage collection
◆ getFont()
BitmapFont com.mygdx.game.engine.entities.FontData.getFont |
( |
| ) |
|
Returns the BitmapFont which was made for the given font.
- Returns
- BitmapFont which was loaded from the given data.
The documentation for this class was generated from the following file:
- C:/Users/RamsesPC/Documents/LibGDXGames/PvB/core/src/com/mygdx/game/engine/entities/FontData.java