Class: Labels::Text

Inherits:
Layer show all
Defined in:
lib/labels/text.rb

Overview

This class represents text layers.

Direct Known Subclasses

Date

Instance Attribute Summary collapse

Attributes inherited from Layer

#alpha, #column, #content, #height, #locked, #rotation, #title, #type, #visible, #width, #x, #y, #z

Method Summary

Methods inherited from Element

#initialize, #to_h

Constructor Details

This class inherits a constructor from Labels::Element

Instance Attribute Details

#boldObject

Whether or not text is bolded



24
25
26
# File 'lib/labels/text.rb', line 24

def bold
  @bold
end

#font_colorObject

Font color in hex



21
22
23
# File 'lib/labels/text.rb', line 21

def font_color
  @font_color
end

#font_familyObject

Font family name



15
16
17
# File 'lib/labels/text.rb', line 15

def font_family
  @font_family
end

#font_sizeObject

Font size in pixels



18
19
20
# File 'lib/labels/text.rb', line 18

def font_size
  @font_size
end

#italicObject

Whether or not text is italicized



27
28
29
# File 'lib/labels/text.rb', line 27

def italic
  @italic
end

#justificationObject

Justification of text



30
31
32
# File 'lib/labels/text.rb', line 30

def justification
  @justification
end