MutableBitmapProvider

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract override var ascent: Int

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

Link copied to clipboard
override val codePoints: IntSet

The code points that this FontProvider supplies.

Link copied to clipboard
abstract override var file: ResourcePath

A ResourcePath to the texture file.

Link copied to clipboard
abstract override var height: Int

The height of the characters in this BitmapProvider. 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.

Functions

Link copied to clipboard
fun createGlyph(x: Int, y: Int, codePoint: Int): T

Creates a new glyph texture puts it into the grid at x and y.

Link copied to clipboard
operator fun set(x: Int, y: Int, glyph: T)

Puts the given glyph into the grid at x and y.

operator fun set(x: Int, y: Int, codePoint: Int)

Puts the given codePoint into the grid at x and y.

fun set(x: Int, y: Int, codePoint: Int, glyph: T)

Puts the given codePoint and glyph into the grid at x and y.

Link copied to clipboard
open override fun toJson(): JsonObject

Creates a JsonObject representation of this FontProvider.

Link copied to clipboard
open override fun write(assetsDir: Path)

Writes additional data to the assets directory, such as bitmaps or unihex files.