instance. Text

The instance.Text function contains convenience methods and members for Rac.Text objects setup with the owning Rac instance.

Source:

Namespaces

Format

Members

hello :Rac.Text

A Text for drawing hello world with topLeft format at Point.zero.

sphinx :Rac.Text

A Text for drawing the pangram sphinx of black quartz, judge my vow with topLeft format at Point.zero.

Methods

Format(hAlign, vAlign, angleopt, fontopt, sizeopt) → {Rac.Text.Format}

Convenience function that creates a new Text.Format setup with this.

The function also contains additional methods and properties listed in instance.Text.Format.

See:
Parameters:
Name Type Attributes Default Description
hAlign string

The horizontal alignment, left-to-right; one of the values from horizontalAlign

vAlign string

The vertical alignment, top-to-bottom; one of the values from verticalAlign

angle Rac.Angle <optional>
rac.Angle.zero

The angle towards which the text is drawn

font string <optional>
null

The font name

size number <optional>
null

The font size