Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Warning
This page refers to an old version of SFML. Click here to switch to the latest version.
Structure describing a glyph. More...
#include <SFML/Graphics/Glyph.hpp>
Public Member Functions | |
| Glyph () | |
| Default constructor. | |
Public Attributes | |
| float | advance |
| Offset to move horizontally to the next character. | |
| FloatRect | bounds |
| Bounding rectangle of the glyph, in coordinates relative to the baseline. | |
| IntRect | textureRect |
| Texture coordinates of the glyph inside the font's texture. | |
Structure describing a glyph.
A glyph is the visual representation of a character.
The sf::Glyph structure provides the information needed to handle the glyph:
| float sf::Glyph::advance |
| FloatRect sf::Glyph::bounds |
| IntRect sf::Glyph::textureRect |