writeCluster

abstract fun writeCluster(codepoints: IntArray, length: Int = codepoints.size)

Writes one pre-segmented grapheme cluster to the grid.

This is the parser-facing ingress for complex printable sequences such as combining-mark clusters, ZWJ emoji, and variation-selector sequences. The core computes the final display width from its active width policy, including East Asian ambiguous-width mode.

Parameters

codepoints

Codepoints that make up the grapheme cluster.

length

Number of valid codepoints in codepoints.