Bitmap

data class Bitmap(var key: Key = Key("minecraft", "default"), var height: Double = 8.0, var ascent: Double = 7.0, var chars: List<String> = listOf()) : FontProvider

A bitmap font provider. Allows you to add a coloured image to a font.

Parameters

key

The key to the bitmap in the textures. E.g. example:custom/foo.png would correspond to assets/example/textures/custom/foo.png. Needs to end with .png.

height

The size of the bitmap. Defaults to 8.

ascent

The vertical shift of the bitmap. The ascent can not be bigger than the height. Defaults to 7.

chars

A list of characters for this bitmap to be used.

Constructors

Link copied to clipboard
constructor(key: Key = Key("minecraft", "default"), height: Double = 8.0, ascent: Double = 7.0, chars: List<String> = listOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var key: Key
Link copied to clipboard
open override val providerCodec: MapCodec<out FontProvider>