formatText(options: DrawTextOpt): FormattedText
Format a piece of text without drawing (for getting dimensions, etc).since
// text background const txt = formatText({ text: "oh hi", }) drawRect({ width: txt.width, height: txt.height, }) drawFormattedText(txt)