UnihexProvider

abstract class UnihexProvider : FontProvider

Represents a unihex font provider.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val codePoints: IntSet

The code points that this FontProvider supplies.

Link copied to clipboard
val glyphRasters: Int2ObjectOpenHashMap<Int2ObjectOpenHashMap<IntArray>>

Contains all glyph rasters sorted by width.

Link copied to clipboard

Functions

Link copied to clipboard
fun addGlyph(codePoint: Int, width: Int, glyph: IntArray)

Adds the given glyph of width for the given codePoint.

Link copied to clipboard
fun addSizeOverride(sizeOverride: SizeOverride)

Adds the given sizeOverride to the list of size overrides.

Link copied to clipboard
fun getGlyph(codePoint: Int): Pair<Int, IntArray>?

Gets the glyph for the given code point.

Link copied to clipboard
fun removeGlyph(codePoint: Int)

Removes the glyph for the given codePoint.

Link copied to clipboard
fun removeSizeOverride(sizeOverride: SizeOverride)

Removes the given sizeOverride from the list of size overrides.

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.