registerFreeTypeFontLoaders

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.

fileExtensions is a collection of supported file extensions. If an empty array is passed, BitmapFont loaders will not be registered. Defaults to ".ttf" and ".otf".

If replaceDefaultBitmapFontLoader is true, default BitmapFont loader will be replaced and any attempts to load BitmapFont will result in the use of FreetypeFontLoader instead. fileExtensions will be ignored and FreeType loader will be used by default for all font assets unless overridden.