Retrieve a glyph of the font.
Get the kerning offset of two glyphs.
Get the line spacing.
Retrieve the texture containing the loaded glyphs of a certain size.
Load the font from a file.
Load the font from a file in memory.
Load the font from a custom stream.
Performs a deep copy on the font.
Class for loading and manipulating character fonts.
Fonts can be loaded from a file, from memory or from a custom stream, and supports the most common types of fonts.
See the loadFromFile function for the complete list of supported formats.
Once it is loaded, a Font instance provides three types of information about the font: - Global metrics, such as the line spacing - Per-glyph metrics, such as bounding box or kerning - Pixel representation of glyphs