Function
formatText
(options: DrawTextOpt): FormattedTextFormat a piece of text without drawing (for getting dimensions, etc).
// text background
const txt = formatText({
text: "oh hi",
});
drawRect({
width: txt.width,
height: txt.height,
});
drawFormattedText(txt);returns The formatted text object.
since v2000.2
group Draw