Class: Fontisan::Ufo::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/fontisan/ufo/image.rb

Overview

A background image anchored to a glyph (common in color fonts).

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#colorObject (readonly)

Returns the value of attribute color.



7
8
9
# File 'lib/fontisan/ufo/image.rb', line 7

def color
  @color
end

#file_nameObject (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

#transformationObject (readonly)

Returns the value of attribute transformation.



7
8
9
# File 'lib/fontisan/ufo/image.rb', line 7

def transformation
  @transformation
end