Loading...
Searching...
No Matches
sf::Glyph Class Reference
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. | |
int | lsbDelta |
Left offset after forced autohint. Internally used by getKerning() | |
int | rsbDelta |
Right offset after forced autohint. Internally used by getKerning() | |
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. |
Detailed Description
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:
- its coordinates in the font's texture
- its bounding rectangle
- the offset to apply to get the starting position of the next glyph
- See also
- sf::Font
Constructor & Destructor Documentation
◆ Glyph()
Member Data Documentation
◆ advance
float sf::Glyph::advance |
◆ bounds
FloatRect sf::Glyph::bounds |
◆ lsbDelta
int sf::Glyph::lsbDelta |
◆ rsbDelta
int sf::Glyph::rsbDelta |
◆ textureRect
IntRect sf::Glyph::textureRect |
The documentation for this class was generated from the following file: