single

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.

Parameters

file

The path where the texture will be saved to.

texture

The texture containing the glyph.

codePoint

The code point of the glyph.

height

The height that glyphs will be rendered as. If this does not match glyphs actual height, the glyphs will be scaled, keeping the aspect ratio. This is the height property in json.

ascent

The defined character ascent. This is the ascent property in json.