Truetype

constructor(key: Key = Key("minecraft", "default"), shift: List<Double> = listOf(), size: Double = 0.0, oversample: Double = 0.0)

Parameters

key

The name of the font. E.g. example:custom_font.ttf. Needs to end with .ttf.

shift

Allows you to control the movement of the font horizontally and vertically (in that order).

size

The scale of the font.

oversample

Resolution to render the font at.