Class: Text2Path::Glyph

Inherits:
Struct
  • Object
show all
Defined in:
lib/text2path/glyph.rb,
lib/text2path/glyph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#horiz_adv_xObject

Returns the value of attribute horiz_adv_x

Returns:

  • (Object)

    the current value of horiz_adv_x



3
4
5
# File 'lib/text2path/glyph.rb', line 3

def horiz_adv_x
  @horiz_adv_x
end

#horiz_adv_yObject

Returns the value of attribute horiz_adv_y

Returns:

  • (Object)

    the current value of horiz_adv_y



3
4
5
# File 'lib/text2path/glyph.rb', line 3

def horiz_adv_y
  @horiz_adv_y
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



3
4
5
# File 'lib/text2path/glyph.rb', line 3

def path
  @path
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/text2path/glyph.rb', line 7

def empty?
  !path || path.empty?
end