Class: Labels::Text
Overview
This class represents text layers.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bold ⇒ Object
Whether or not text is bolded.
-
#font_color ⇒ Object
Font color in hex.
-
#font_family ⇒ Object
Font family name.
-
#font_size ⇒ Object
Font size in pixels.
-
#italic ⇒ Object
Whether or not text is italicized.
-
#justification ⇒ Object
Justification of text.
Attributes inherited from Layer
#alpha, #column, #content, #height, #locked, #rotation, #title, #type, #visible, #width, #x, #y, #z
Method Summary
Methods inherited from Element
Constructor Details
This class inherits a constructor from Labels::Element
Instance Attribute Details
#bold ⇒ Object
Whether or not text is bolded
24 25 26 |
# File 'lib/labels/text.rb', line 24 def bold @bold end |
#font_color ⇒ Object
Font color in hex
21 22 23 |
# File 'lib/labels/text.rb', line 21 def font_color @font_color end |
#font_family ⇒ Object
Font family name
15 16 17 |
# File 'lib/labels/text.rb', line 15 def font_family @font_family end |
#font_size ⇒ Object
Font size in pixels
18 19 20 |
# File 'lib/labels/text.rb', line 18 def font_size @font_size end |
#italic ⇒ Object
Whether or not text is italicized
27 28 29 |
# File 'lib/labels/text.rb', line 27 def italic @italic end |
#justification ⇒ Object
Justification of text
30 31 32 |
# File 'lib/labels/text.rb', line 30 def justification @justification end |