AssetLoader for BitmapFont instances. Loads the font description file (.fnt) asynchronously, loads the
Texture containing the glyphs as a dependency. The BitmapFontParameter allows you to set things like texture
filters or whether to flip the glyphs vertically.
| Modifier and Type | Class and Description |
|---|---|
| public static class | BitmapFontLoader.
Parameter to be passed to |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv BitmapFont. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, BitmapFontLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public void | loadAsync(AssetManager manager, String fileName, FileHandle file, BitmapFontLoader.
Implements abstract com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager. |
| public BitmapFont | loadSync(AssetManager manager, String fileName, FileHandle file, BitmapFontLoader.
Implements abstract com. Loads the OpenGL part of the asset. |
| data | back to summary |
|---|---|
| pack-priv BitmapFont. | |
| BitmapFontLoader | back to summary |
|---|---|
| public BitmapFontLoader(FileHandleResolver resolver) | |
| getDependencies | back to summary |
|---|---|
| public Array Implements abstract com. Doc from com. Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.
| |
| loadAsync | back to summary |
|---|---|
| public void loadAsync(AssetManager manager, String fileName, FileHandle file, BitmapFontLoader. Implements abstract com. Doc from com. Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
| |
| loadSync | back to summary |
|---|---|
| public BitmapFont loadSync(AssetManager manager, String fileName, FileHandle file, BitmapFontLoader. Implements abstract com. Doc from com. Loads the OpenGL part of the asset.
| |
AssetManager#load(String, Class, AssetLoaderParameters) if additional configuration is
necessary for the BitmapFont.
| Modifier and Type | Field and Description |
|---|---|
| public String | atlasName
The name of the |
| public BitmapFont. | bitmapFontData
optional |
| public boolean | flip
Flips the font vertically if |
| public boolean | genMipMaps
Generates mipmaps for the font if |
| public Texture. | magFilter
The |
| public Texture. | minFilter
The |
| Access | Constructor and Description |
|---|---|
| public |
| atlasName | back to summary |
|---|---|
| public String atlasName The name of the | |
| bitmapFontData | back to summary |
|---|---|
| public BitmapFont. optional | |
| flip | back to summary |
|---|---|
| public boolean flip Flips the font vertically if | |
| genMipMaps | back to summary |
|---|---|
| public boolean genMipMaps Generates mipmaps for the font if | |
| magFilter | back to summary |
|---|---|
| public Texture. The | |
| minFilter | back to summary |
|---|---|
| public Texture. The | |
| BitmapFontParameter | back to summary |
|---|---|
| public BitmapFontParameter() | |