processText

actual external fun processText(text: String, sizeFn: Float, weight: Float): String
expect fun processText(text: String, sizeFn: Float, weight: Float = 400.0f): String

Processes text and returns layout information as JSON. This also generates SDF glyphs for any new characters.

Return

JSON string containing layout result with glyph positions and atlas rects

Parameters

text

The text to layout

sizeFn

Font size in pixels

weight

Font weight (100-900, default 400)

actual external fun processText(text: String, sizeFn: Float, weight: Float): String