readBitmapFont

suspend fun VfsFile.readBitmapFont(filter: TexMagFilter = TexMagFilter.NEAREST, mipmaps: Boolean = true, preloadedTextures: List<TextureSlice> = listOf()): BitmapFont

Reads a bitmap font.

Parameters

filter

the filter to assign any Texture that gets loaded

mipmaps

whether the loaded Texture should use mipmaps

preloadedTextures

instead of loading a Texture when parsing the bitmap font, this will use an existing TextureSlice. This is useful if the bitmap font texture already exists in an atlas. Each slice in the list is considered a page in the bitmap font. Disposing a BitmapFont that uses preloaded textures will not dispose of the textures.