Interface Text

Text in a Text object

interface Text {
    bold?: boolean;
    color?: string;
    fontfamily?: string;
    halign?: HorizontalAlign;
    italic?: boolean;
    kerning?: boolean;
    pixelsize?: number;
    strikeout?: boolean;
    text: string;
    underline?: boolean;
    valign?: VerticalAlign;
    wrap?: boolean;
}

Properties

bold?: boolean

Whether to use a bold font. Default is false.

color?: string

The text color. Default is black.

fontfamily?: string

The font family. Default is sand-serif

The horizontal alignment. Default is LEFT.

italic?: boolean

Whether to use an italic font. Default is false.

kerning?: boolean

Whether to use kerning when placing characters. Default is true.

pixelsize?: number

Pixel size of the font. Default is 16.

strikeout?: boolean

Whether to strike out the text. Default is false.

text: string

The text.

underline?: boolean

Whether to underline the text. Default is false.

valign?: VerticalAlign

Vertical alignment. Default is TOP.

wrap?: boolean

Whether the text is wrapped within the object bounds. Default is false.

Generated using TypeDoc