Class: Fontisan::Ufo::Guideline
- Inherits:
-
Object
- Object
- Fontisan::Ufo::Guideline
- 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
-
#angle ⇒ Object
readonly
Returns the value of attribute angle.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x:, y:, angle: nil, name: nil, identifier: nil) ⇒ Guideline
constructor
A new instance of Guideline.
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
#angle ⇒ Object (readonly)
Returns the value of attribute angle.
8 9 10 |
# File 'lib/fontisan/ufo/guideline.rb', line 8 def angle @angle end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
8 9 10 |
# File 'lib/fontisan/ufo/guideline.rb', line 8 def identifier @identifier end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/fontisan/ufo/guideline.rb', line 8 def name @name end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
8 9 10 |
# File 'lib/fontisan/ufo/guideline.rb', line 8 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
8 9 10 |
# File 'lib/fontisan/ufo/guideline.rb', line 8 def y @y end |