drawFormattedText(text: FormattedText): void

Draw a piece of formatted text from formatText().

sincev2000.2

// text background
const txt = formatText({
    text: "oh hi",
})

drawRect({
    width: txt.width,
    height: txt.height,
})

drawFormattedText(txt)
kaplay logo