Text

class Drawing.Text

Text. Created using Drawing.add_text().

position: Tuple

Position of the text.

Attribute:

Can be read or written

Return type:

Tuple

rotation: Tuple

Rotation of the text as a quaternion.

Attribute:

Can be read or written

Return type:

Tuple

reference_frame: SpaceCenter.ReferenceFrame

Reference frame for the positions of the object.

Attribute:

Can be read or written

Return type:

SpaceCenter.ReferenceFrame

visible: boolean

Whether the object is visible.

Attribute:

Can be read or written

Return type:

boolean

remove()

Remove the object.

content: string

The text string

Attribute:

Can be read or written

Return type:

string

font: string

Name of the font

Attribute:

Can be read or written

Return type:

string

static available_fonts()

A list of all available fonts.

Return type:

List

size: number

Font size.

Attribute:

Can be read or written

Return type:

number

character_size: number

Character size.

Attribute:

Can be read or written

Return type:

number

style: UI.FontStyle

Font style.

Attribute:

Can be read or written

Return type:

UI.FontStyle

color: Tuple

Set the color

Attribute:

Can be read or written

Return type:

Tuple

material: string

Material used to render the object. Creates the material from a shader with the given name.

Attribute:

Can be read or written

Return type:

string

alignment: UI.TextAlignment

Alignment.

Attribute:

Can be read or written

Return type:

UI.TextAlignment

line_spacing: number

Line spacing.

Attribute:

Can be read or written

Return type:

number

anchor: UI.TextAnchor

Anchor.

Attribute:

Can be read or written

Return type:

UI.TextAnchor