single

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.

Parameters

file

The path to where the texture will be saved.

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 the height of the glyphs, 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.


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.

Parameters

file

The path where the texture will be read from and saved to.

codePoint

The code point of the glyph.

height

The height that glyphs will be rendered as. If this does not match the 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.