visualGlyphs
fun visualGlyphs(text: String, rightToLeft: Boolean = options.rightToLeft): List<MinecraftVisualGlyph>(source)
Shapes and orders a complete logical line while retaining original UTF-16 scalar positions for font inheritance. Positions precede shaping and bidirectional reordering; contractions belong to their first contributing scalar. No input or derived run is retained by the engine.
Return
a detached read-only list of visual glyphs whose source offsets belong to the original logical line.
Parameters
text
immutable logical text containing all spans on one line.
rightToLeft
whether the fallback paragraph direction is right-to-left; defaults to the captured language option.
Throws
when accessed from another thread or after close.