registerFreeTypeFontLoaders

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.

Parameters

fileExtensions

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

replaceDefaultBitmapFontLoader

if true, default BitmapFont loader will be replaced and any attempts to load BitmapFont will result in use of FreetypeFontLoader instead. fileExtensions will be ignored and FreeType loader will be used by default unless overridden.