fonts

abstract fun fonts(snapshot: MinecraftFontSnapshot)(source)

Supplies immutable resource-pack font definitions and files instead of the compatibility ASCII mask declarations. The snapshot can be shared between profiles and hosts and owns no native state. A host using this profile must supply its independently owned font backend through the font-aware host factory.

Parameters

snapshot

complete immutable font resource state, pinned until a new profile and host are created.

Throws

when fonts or any compatibility glyph were already declared.

after the callback returns or from another thread.