BitmapFont instances from FreeType font files. Requires a FreeTypeFontLoaderParameter to be passed to
AssetManager#load(String, Class, AssetLoaderParameters) which specifies the name of the TTF file as well the parameters
used to generate the BitmapFont (size, characters, etc.)
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Array | getDependencies(String fileName, FileHandle file, FreetypeFontLoader.
Implements abstract com. Returns the assets this asset requires to be loaded first. |
| public void | loadAsync(AssetManager manager, String fileName, FileHandle file, FreetypeFontLoader.
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, FreetypeFontLoader.
Implements abstract com. Loads the OpenGL part of the asset. |
| FreetypeFontLoader | back to summary |
|---|---|
| public FreetypeFontLoader(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, FreetypeFontLoader. 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, FreetypeFontLoader. Implements abstract com. Doc from com. Loads the OpenGL part of the asset.
| |
| Modifier and Type | Field and Description |
|---|---|
| public String | fontFileName
the name of the TTF file to be used to load the font |
| public FreeTypeFontGenerator. | fontParameters
the parameters used to generate the font, e.g. size, characters, etc. |
| Access | Constructor and Description |
|---|---|
| public |
| fontFileName | back to summary |
|---|---|
| public String fontFileName the name of the TTF file to be used to load the font | |
| fontParameters | back to summary |
|---|---|
| public FreeTypeFontGenerator. the parameters used to generate the font, e.g. size, characters, etc. | |
| FreeTypeFontLoaderParameter | back to summary |
|---|---|
| public FreeTypeFontLoaderParameter() | |