BitmapProvider

abstract class BitmapProvider<T> : FontProvider

Represents a bitmap font provider.

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val 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 val file: ResourcePath

A ResourcePath to the texture file.

Link copied to clipboard
abstract val 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
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.