Class: Fontisan::Ufo::Guideline

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

Overview

A helper guideline on a glyph. Editor-only; not compiled into the final font.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x:, y:, angle: nil, name: nil, identifier: nil) ⇒ Guideline

Returns a new instance of Guideline.



10
11
12
13
14
15
16
# File 'lib/fontisan/ufo/guideline.rb', line 10

def initialize(x:, y:, angle: nil, name: nil, identifier: nil)
  @x = x
  @y = y
  @angle = angle
  @name = name
  @identifier = identifier
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



8
9
10
# File 'lib/fontisan/ufo/guideline.rb', line 8

def angle
  @angle
end

#identifierObject (readonly)

Returns the value of attribute identifier.



8
9
10
# File 'lib/fontisan/ufo/guideline.rb', line 8

def identifier
  @identifier
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/fontisan/ufo/guideline.rb', line 8

def name
  @name
end

#xObject (readonly)

Returns the value of attribute x.



8
9
10
# File 'lib/fontisan/ufo/guideline.rb', line 8

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



8
9
10
# File 'lib/fontisan/ufo/guideline.rb', line 8

def y
  @y
end