Skip to content

Glyph ​

Font glyph representation.

Overview ​

Fontisan::Glyph represents a single glyph.

Properties ​

PropertyTypeDescription
idIntegerGlyph ID
nameStringGlyph name
unicodeIntegerUnicode codepoint
boundsHashBounding box
contoursArrayOutline contours

Methods ​

outline ​

Get glyph outline.

ruby
outline = glyph.outline
outline.contours.each do |contour|
  contour.points.each do |point|
    puts "(#{point.x}, #{point.y})"
  end
end

See Also ​

Fontisan is a [Ribose](https://open.ribose.com/) project