Companion
object Companion
Functions
Link copied to clipboard
fun create(file: ResourcePath<ResourceType.FontTexture>, glyphWidth: Int, glyphHeight: Int, height: Int, ascent: Int): MutableBitmapProvider<BufferedImage>
Creates a new mutable BitmapProvider without any glyphs.
Link copied to clipboard
fun custom(file: ResourcePath<ResourceType.FontTexture>, codePointGrid: MutableCodePointGrid, glyphGrid: MutableGlyphGrid<BufferedImage>, height: Int, ascent: Int): MutableBitmapProvider<BufferedImage>
fun custom(file: ResourcePath<ResourceType.FontTexture>, codePointGrid: MutableCodePointGrid, glyphGrid: MutableGlyphGrid<IntArray>, height: Int, ascent: Int): MutableBitmapProvider<IntArray>
Creates a new mutable BitmapProvider with custom grids.
Link copied to clipboard
fun fromDisk(builder: ResourcePackBuilder, provider: JsonObject): MutableBitmapProvider<BufferedImage>
Reads a BitmapProvider from disk.
Link copied to clipboard
fun single(file: ResourcePath<ResourceType.FontTexture>, texture: BufferedImage, codePoint: Int, height: Int, ascent: Int): MutableBitmapProvider<BufferedImage>
Creates a new BitmapProvider with a single glyph from a texture.