class

Celestine::Text

Inherits Celestine::Modules::Animate::Transform / Celestine::Modules::Animate::Motion / Celestine::Modules::Animate / Celestine::Modules::Filter / Celestine::Modules::Mask / Celestine::Modules::StrokeFill / Celestine::Modules::Position / Celestine::Modules::Transform / Celestine::Drawable / Reference / Object

Draws and holds information for text

Constants

TAG = "text"

Instance methods

dominant_baseline

Changes where the natural anchor is for the text.

  • Potential Values: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top
  • Mozilla SVG Docs
Source
dominant_baseline=(dominant_baseline : String | Nil)

Changes where the natural anchor is for the text.

  • Potential Values: auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top
  • Mozilla SVG Docs
Source
draw(io : IO) : Nil

Main draw method for a drawable. Takes in and interacts with an io.

Source
dx

Shifts the text position horizontally from a previous text element

dx=(dx : IFNumber | Nil)

Shifts the text position horizontally from a previous text element

dx_units

What kind of unit dx should use when rendering

dx_units=(dx_units : String | Nil)

What kind of unit dx should use when rendering

dy

Shifts the text position vertically from a previous text element

dy=(dy : IFNumber | Nil)

Shifts the text position vertically from a previous text element

dy_units

What kind of unit dy should use when rendering

dy_units=(dy_units : String | Nil)

What kind of unit dy should use when rendering

font_family

Changes the font family used.

Source
font_family=(font_family : String | Nil)

Changes the font family used.

Source
font_size

Changes the font size used.

font_size=(font_size : IFNumber | Nil)

Changes the font size used.

font_size_adjust

Changes the font size adjustment.

Source
font_size_adjust=(font_size_adjust : Float64 | Nil)

Changes the font size adjustment.

Source
font_size_units

What kind of unit font_size should use when rendering

font_size_units=(font_size_units : String | Nil)

What kind of unit font_size should use when rendering

font_stretch

Changes the font stretch type.

Source
font_stretch=(font_stretch : String | Nil)

Changes the font stretch type.

Source
font_style

Changes the font style.

Source
font_style=(font_style : String | Nil)

Changes the font style.

Source
font_variant

Changes the font variant.

Source
font_variant=(font_variant : String | Nil)

Changes the font variant.

Source
font_weight

Changes the font weight.

Source
font_weight=(font_weight : String | Nil)

Changes the font weight.

Source
length

Changes the length of the text.

length=(length : IFNumber | Nil)

Changes the length of the text.

length_adjust

How the length should be adjusted.

Source
length_adjust=(length_adjust : String | Nil)

How the length should be adjusted.

Source
length_units

What kind of unit length should use when rendering

length_units=(length_units : String | Nil)

What kind of unit length should use when rendering

letter_spacing

Changes how far letters are spaced.

  • Mozilla SVG Docs TODO: Make this SIFNumber? since it can have the string value "normal" as well as numbers :(
letter_spacing=(letter_spacing : IFNumber | Nil)

Changes how far letters are spaced.

  • Mozilla SVG Docs TODO: Make this SIFNumber? since it can have the string value "normal" as well as numbers :(
letter_spacing_units

What kind of unit letter_spacing should use when rendering

letter_spacing_units=(letter_spacing_units : String | Nil)

What kind of unit letter_spacing should use when rendering

rotate

An array that allows for the rotation of each individual glyph

  • Mozilla SVG Docs note the docs here do not talk about this usage, only on the main element page mentions this
Source
rotate=(rotate : Array(Float64))

An array that allows for the rotation of each individual glyph

  • Mozilla SVG Docs note the docs here do not talk about this usage, only on the main element page mentions this
Source
text

The text to be displayed

Source
text=(text : String | Nil)

The text to be displayed

Source

Nested types