The SamsaInstance
object is ...
SamsaInstance.renderText()
Returns an SVG string that is ready to display. It takes one argument,options
. All properties of options are optional, with defaults indicated in square brackets below.options.text
is the text to be rendered ["hello, world!"]options.fontSize
is the size of the text in SVG units [12]options.color
is the 32-bit RGBA color to use [0x000000ff]options.paletteId
is the palette ID to use for COLR fonts [0]