Package-level declarations

Functions

Link copied to clipboard
inline fun freeTypeFontParameters(file: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): FreetypeFontLoader.FreeTypeFontLoaderParameter

Syntax sugar for FreeTypeFontLoaderParameter initialization. Used internally by loadFreeTypeFont.

Link copied to clipboard
inline fun FreeTypeFontGenerator.generateFont(setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): BitmapFont

Syntax sugar for FreeTypeFontGenerator.generateFont. Allows using Kotlin DSL to initiate font parameters.

Link copied to clipboard
inline fun AssetManager.loadFreeTypeFont(file: String, setup: FreeTypeFontGenerator.FreeTypeFontParameter.() -> Unit = {}): Asset<BitmapFont>

Allows customizing parameters of a loaded FreeType font.

Link copied to clipboard
fun AssetManager.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.