Class: Fontisan::Ufo::Anchor
- Inherits:
-
Object
- Object
- Fontisan::Ufo::Anchor
- Defined in:
- lib/fontisan/ufo/anchor.rb
Overview
A mark-attachment anchor on a glyph (used in GSUB/GPOS).
Instance Attribute Summary collapse
-
#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:, name: nil, identifier: nil) ⇒ Anchor
constructor
A new instance of Anchor.
Constructor Details
#initialize(x:, y:, name: nil, identifier: nil) ⇒ Anchor
Returns a new instance of Anchor.
9 10 11 12 13 14 |
# File 'lib/fontisan/ufo/anchor.rb', line 9 def initialize(x:, y:, name: nil, identifier: nil) @x = x @y = y @name = name @identifier = identifier end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
7 8 9 |
# File 'lib/fontisan/ufo/anchor.rb', line 7 def identifier @identifier end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/fontisan/ufo/anchor.rb', line 7 def name @name end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
7 8 9 |
# File 'lib/fontisan/ufo/anchor.rb', line 7 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
7 8 9 |
# File 'lib/fontisan/ufo/anchor.rb', line 7 def y @y end |