Skip to content

class Celestine::Text
inherits Celestine::Drawable #

Draws and holds information for text

Included modules

Celestine::Modules::Animate Celestine::Modules::Animate::Motion Celestine::Modules::Animate::Transform Celestine::Modules::Filter Celestine::Modules::Mask Celestine::Modules::Position Celestine::Modules::StrokeFill Celestine::Modules::Transform

Constants#

TAG = "text" #

Methods#

#dominant_baseline : String? #

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
View source

#dominant_baseline=(dominant_baseline : String?) #

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
View source

#draw(io : IO) : Nil #

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

View source

#dx : IFNumber? #

Shifts the text position horizontally from a previous text element

#dx=(dx : IFNumber?) #

Shifts the text position horizontally from a previous text element

#dx_units : String? #

What kind of unit dx should use when rendering

#dx_units=(dx_units : String?) #

What kind of unit dx should use when rendering

#dy : IFNumber? #

Shifts the text position vertically from a previous text element

#dy=(dy : IFNumber?) #

Shifts the text position vertically from a previous text element

#dy_units : String? #

What kind of unit dy should use when rendering

#dy_units=(dy_units : String?) #

What kind of unit dy should use when rendering

#font_family : String? #

Changes the font family used.

View source

#font_family=(font_family : String?) #

Changes the font family used.

View source

#font_size : IFNumber? #

Changes the font size used.

#font_size=(font_size : IFNumber?) #

Changes the font size used.

#font_size_adjust : Float64? #

Changes the font size adjustment.

View source

#font_size_adjust=(font_size_adjust : Float64?) #

Changes the font size adjustment.

View source

#font_size_units : String? #

What kind of unit font_size should use when rendering

#font_size_units=(font_size_units : String?) #

What kind of unit font_size should use when rendering

#font_stretch : String? #

Changes the font stretch type.

View source

#font_stretch=(font_stretch : String?) #

Changes the font stretch type.

View source

#font_style : String? #

Changes the font style.

View source

#font_style=(font_style : String?) #

Changes the font style.

View source

#font_variant : String? #

Changes the font variant.

View source

#font_variant=(font_variant : String?) #

Changes the font variant.

View source

#font_weight : String? #

Changes the font weight.

View source

#font_weight=(font_weight : String?) #

Changes the font weight.

View source

#length : IFNumber? #

Changes the length of the text.

#length=(length : IFNumber?) #

Changes the length of the text.

#length_adjust : String? #

How the length should be adjusted.

View source

#length_adjust=(length_adjust : String?) #

How the length should be adjusted.

View source

#length_units : String? #

What kind of unit length should use when rendering

#length_units=(length_units : String?) #

What kind of unit length should use when rendering

#letter_spacing : IFNumber? #

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?) #

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 : String? #

What kind of unit letter_spacing should use when rendering

#letter_spacing_units=(letter_spacing_units : String?) #

What kind of unit letter_spacing should use when rendering

#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
View 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
View source

#text : String? #

The text to be displayed

View source

#text=(text : String?) #

The text to be displayed

View source

module Celestine::Text::Attrs #

Included modules

Celestine::Modules::Filter::Attrs Celestine::Modules::Mask::Attrs Celestine::Modules::Position::Attrs Celestine::Modules::StrokeFill::Attrs Celestine::Modules::Transform::Attrs

Constants#

DOMINANT_BASELINE = "dominant-baseline" #

DX = "dx" #

DY = "dy" #

FONT_FAMILY = "font-family" #

FONT_SIZE = "font-size" #

FONT_SIZE_ADJUST = "font-size-adjust" #

FONT_STRETCH = "font-stretch" #

FONT_STYLE = "font-style" #

FONT_VARIANT = "font-variant" #

FONT_WEIGHT = "font-weight" #

LENGTH = "textLength" #

LENGTH_ADJUST = "lengthAdjust" #

LETTER_SPACING = "letter-spacing" #

ROTATE = "rotate" #