RichTextSVG

See source code
Table of contents

Renders a rich text string as SVG given bounds and text properties.


Properties

bounds

bounds: Box;

fontFamily

fontFamily: string;

fontSize

fontSize: number;

labelColor

labelColor: string;

lineHeight

lineHeight: number;

padding

padding: number;

richText

richText: TLRichText;

showTextOutline

optional
showTextOutline?: boolean;

textAlign

textAlign: "center" | "end" | "start";

verticalAlign

verticalAlign: "end" | "middle" | "start";

wrap

optional
wrap?: boolean;

Prev
RichTextLabel
Next
RotateCWMenuItem