Companion

object Companion

Functions

Link copied to clipboard
fun custom(file: ResourcePath, codePointGrid: CodePointGrid, glyphGrid: GlyphGrid<BufferedImage>, height: Int, ascent: Int): BitmapProvider<BufferedImage>
@JvmName(name = "custom1")
fun custom(file: ResourcePath, codePointGrid: CodePointGrid, glyphGrid: GlyphGrid<IntArray>, height: Int, ascent: Int): BitmapProvider<IntArray>

Creates a new immutable BitmapProvider with custom grids.

Link copied to clipboard
fun <T> reference(provider: BitmapProvider<T>, customAscent: Int): BitmapProvider<T>

Creates a new immutable BitmapProvider that references another one, but with a different ascent.

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

Creates an immutable BitmapProvider with a single glyph, assuming the texture will exist.

fun single(file: ResourcePath, texture: BufferedImage, codePoint: Int, height: Int, ascent: Int): BitmapProvider<BufferedImage>

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