|
libdonut 2.3.6
Application framework for cross-platform game development in C++20
|
Data required to render a single shaped glyph relative to at any given starting position. More...
#include <donut/graphics/Text.hpp>
Public Attributes | |
| Font * | font |
| Non-owning read-only non-null pointer to the font used to shape this glyph. | |
| vec2 | shapedOffset |
| Scaled offset from the starting position to draw this glyph at, in pixels. | |
| vec2 | shapedSize |
| Scaled size of this glyph's rectangle, in pixels. | |
| u32 | characterSize |
| Character size that this glyph was shaped at. | |
| char32_t | codePoint |
| Unicode code point of this glyph. | |
Data required to render a single shaped glyph relative to at any given starting position.
| Font* donut::graphics::Text::ShapedGlyph::font |
Non-owning read-only non-null pointer to the font used to shape this glyph.
| vec2 donut::graphics::Text::ShapedGlyph::shapedOffset |
Scaled offset from the starting position to draw this glyph at, in pixels.
| vec2 donut::graphics::Text::ShapedGlyph::shapedSize |
Scaled size of this glyph's rectangle, in pixels.
| u32 donut::graphics::Text::ShapedGlyph::characterSize |
Character size that this glyph was shaped at.
| char32_t donut::graphics::Text::ShapedGlyph::codePoint |
Unicode code point of this glyph.