calculateStaticLineLayout

fun calculateStaticLineLayout(wrappedLines: List<WrappedLine>, isLineRightAligned: Boolean, canvasWidth: Float, lineHeight: Float, isRtl: Boolean): List<List<SyllableLayout>>

Calculates the final static layout positions for all syllables in the wrapped lines. Handles alignment (Left/Right/RTL), row positioning, and relative offsets within the line.

Return

List of lists of SyllableLayout, where each inner list is a row, with updated positions.

Parameters

wrappedLines

The lines after wrapping calculation.

isLineRightAligned

Whether the entire block should be right-aligned.

canvasWidth

Total width of the canvas.

lineHeight

Height of a single line.

isRtl

Whether the visual flow is RTL.