loadFreeTypeFont
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.
path is the file path to the FreeType font file. Must be compatible with the AssetStorage.fileResolver.
setup can be used to specify and customize the parameters of the loaded font. It will be inlined and invoked on a FreeTypeFontParameter.
Returns the result of font loading. See AssetStorage.load for lists of possible outcomes.
See also loadFreeTypeFontAsync and loadFreeTypeFontSync.