Skip to content

Function: layoutTextRuns() ​

ts
function layoutTextRuns(lines, base, oracle?): TextRunLayout;

Experimental

Lay out rich lines against a base style: every run's baseline origin relative to the label anchor, plus the block size. Empty lines still take a line advance.

Parameters ​

ParameterType
linesTextRunLines
baseTextRunBase
oracleFontMetricsOracle

Returns ​

TextRunLayout

Released under the MIT License.