Class: Fontisan::Ufo::Image
- Inherits:
-
Object
- Object
- Fontisan::Ufo::Image
- Defined in:
- lib/fontisan/ufo/image.rb
Overview
A background image anchored to a glyph (common in color fonts).
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
-
#transformation ⇒ Object
readonly
Returns the value of attribute transformation.
Instance Method Summary collapse
-
#initialize(file_name:, transformation: nil, color: nil) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(file_name:, transformation: nil, color: nil) ⇒ Image
Returns a new instance of Image.
9 10 11 12 13 |
# File 'lib/fontisan/ufo/image.rb', line 9 def initialize(file_name:, transformation: nil, color: nil) @file_name = file_name.to_s @transformation = transformation @color = color end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
7 8 9 |
# File 'lib/fontisan/ufo/image.rb', line 7 def color @color end |
#file_name ⇒ Object (readonly)
Returns the value of attribute file_name.
7 8 9 |
# File 'lib/fontisan/ufo/image.rb', line 7 def file_name @file_name end |
#transformation ⇒ Object (readonly)
Returns the value of attribute transformation.
7 8 9 |
# File 'lib/fontisan/ufo/image.rb', line 7 def transformation @transformation end |