process Text
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
size Fn
Font size in pixels
weight
Font weight (100-900, default 400)