custom
fun custom(file: ResourcePath, codePointGrid: CodePointGrid, glyphGrid: GlyphGrid<BufferedImage>, height: Int, ascent: Int): BitmapProvider<BufferedImage>
fun custom(file: ResourcePath, codePointGrid: CodePointGrid, glyphGrid: GlyphGrid<IntArray>, height: Int, ascent: Int): BitmapProvider<IntArray>
Creates a new immutable BitmapProvider with custom grids.
Parameters
file
The path to where the texture will be saved.
codePointGrid
The code points, aligned in a grid pointing to the glyphs.
glyphGrid
The glyphs, aligned in a grid pointing to the code points.
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.