glyph

fun glyph(font: ResourceId, codePoint: Int): MinecraftFontGlyph(source)

Resolves the first applicable provider for one Unicode scalar. Every provider is preflighted before filtering, so a failed disabled provider still invalidates its bundle. Unknown fonts and missing glyphs return the native missing-glyph shape instead of silently selecting the default font. Atlas-rejected rasters use the missing shape with the selected release's advance behavior. Successful providers retain native non-finite metrics without permitting them into portable drawing geometry. This operation performs only derived work and never calls a tree or mutates application state.

Return

detached glyph metrics and pipeline-ready RGBA pixels.

Parameters

font

structural font-family identifier.

codePoint

Unicode scalar to resolve.

Throws

when called from another thread or after close.

when codePoint is not a Unicode scalar.

when a previously opened backend fails during rasterization.