MinecraftVisualGlyph

data class MinecraftVisualGlyph(val codePoint: Int, val sourceIndex: Int)(source)

Immutable visual-order Unicode scalar associated with its original logical UTF-16 position. The position identifies the first contributing scalar before shaping and bidirectional reordering; a Lam-Alef ligature belongs to the Lam. This preserves the original font spans after contractions, deliberately correcting native text processing's shifted style lookup. Values contain no backend ownership and can be shared across threads.

Throws

when the scalar or source offset is invalid.

Constructors

Link copied to clipboard
constructor(codePoint: Int, sourceIndex: Int)

Properties

Link copied to clipboard

shaped Unicode scalar to render.

Link copied to clipboard

non-negative UTF-16 scalar offset in the original logical line.