Class: Fontisan::Ufo::Anchor

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

Overview

A mark-attachment anchor on a glyph (used in GSUB/GPOS).

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#identifierObject (readonly)

Returns the value of attribute identifier.



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

def identifier
  @identifier
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#xObject (readonly)

Returns the value of attribute x.



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

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



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

def y
  @y
end