visualOrder

fun visualOrder(text: String, rightToLeft: Boolean = options.rightToLeft): String(source)

Uses the selected backend's native-compatible text ordering without retaining the input string.

Return

visual-order text.

Parameters

text

immutable logical text.

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.