Module OgamlGraphics.Font.Glyph

Representation of a character

This module encapsulates the data associated to a character's glyph.
All coordinates are given relatively to the glyph's origin, and with an up-increasing Y coordinate

type t
Type of a glyph
val advance : t -> float
Space between the origin of this glyph and the origin of the next glyph
val bearing : t -> OgamlMath.Vector2f.t
Returns the offset between the origin and the top-left corner of the glyph
val rect : t -> OgamlMath.FloatRect.t
Returns the bouding rectangle of the glyph relatively to the origin