Companion

object Companion

Functions

Link copied to clipboard
fun create(file: ResourcePath, glyphWidth: Int, glyphHeight: Int, height: Int, ascent: Int): MutableBitmapProvider<BufferedImage>

Creates a new mutable BitmapProvider without any glyphs.

Link copied to clipboard
@JvmName(name = "custom1")
fun custom(file: ResourcePath, 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(provider: JsonObject): MutableBitmapProvider<BufferedImage>

Reads a BitmapProvider from disk.

Link copied to clipboard
fun single(file: ResourcePath, texture: BufferedImage, codePoint: Int, height: Int, ascent: Int): MutableBitmapProvider<BufferedImage>

Creates a new BitmapProvider with a single glyph from a texture.