Package-level declarations
Functions
Link copied to clipboard
inline suspend fun AssetStorage.loadFreeTypeFont(path: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): BitmapFont
Loads a FreeType font via a coroutine. Allows customizing parameters of a loaded FreeType font.
Link copied to clipboard
inline fun AssetStorage.loadFreeTypeFontAsync(path: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): Deferred<BitmapFont>
Loads a FreeType font asynchronously. Allows customizing parameters of a loaded FreeType font.
inline fun AsyncAssetManager.loadFreeTypeFontAsync(file: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): Deferred<BitmapFont>
Allows customizing parameters of a FreeType font loaded asynchronously.
Link copied to clipboard
inline fun AssetStorage.loadFreeTypeFontSync(path: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): BitmapFont
Loads a FreeType font synchronously. Blocks the current thread until the font is loaded. Allows customizing parameters of a loaded FreeType font.
Link copied to clipboard
fun AssetStorage.registerFreeTypeFontLoaders(fileExtensions: Array<String> = arrayOf(".ttf", ".otf"), replaceDefaultBitmapFontLoader: Boolean = false)
Registers all loaders necessary to load BitmapFont and FreeTypeFontGenerator instances from TTF and OTF files.