create

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

Creates a new mutable BitmapProvider without any glyphs.

Parameters

file

The path where the texture will be saved to.

glyphWidth

The width that glyph images will have.

glyphHeight

The height that glyph images will have.

height

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