Raised when an error occur in this module
Module OgamlGraphics.Font
Information about a fontSubmodules
Glyph | Representation of a character |
This module stores a font and dynamically loads sizes and glyphs as requested by the user
Type of a font
Type alias for a character given in ASCII or UTF-8
Loads a font from a file
glyph font code size bold
returns the glyph representing the character code
in font
of size size
and with the modifier bold
Returns the kerning between two chars of a given size, that is the horizontal offset that must be applied between the two glyphs (usually negative)
Returns the coordinate above the baseline the font extends
Returns the coordinate below the baseline the font extends (usually negative)
Returns the distance between the descent of a line and the ascent of the next line
Returns the space between the baseline of two lines (equals ascent + linegap - descent)
Returns the texture associated to a font. In this texture, every layer correspond to a font size (in loading order). Use
Font.size_index
to get the layer associated to a font size. This texture is not mipmapped.
Returns the index associated to a font size in the font's texture. Raises Font_error if the font size has not been loaded yet.