generateFont

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

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

Parameters

setup

will be applied to newly constructed FreeTypeFontParameter. Inlined. If not given, will create a font with default parameters.