libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Additional information about a single shaped glyph, including some data that is not strictly required for simple rendering. More...
#include <donut/graphics/Text.hpp>
Public Attributes | |
vec2 | shapedOffset |
Scaled offset from the starting position to draw this glyph at, in pixels. More... | |
vec2 | shapedAdvance |
Scaled offset to apply in order to advance to the next glyph position, including kerning. More... | |
std::size_t | shapedLineIndex |
Index of the ShapedLineInfo corresponding to the line that this glyph is part of. More... | |
std::size_t | stringOffset |
Byte offset in the input string of the first code unit that this glyph originated from. More... | |
Additional information about a single shaped glyph, including some data that is not strictly required for simple rendering.
vec2 donut::graphics::Text::ShapedGlyphInfo::shapedOffset |
Scaled offset from the starting position to draw this glyph at, in pixels.
vec2 donut::graphics::Text::ShapedGlyphInfo::shapedAdvance |
Scaled offset to apply in order to advance to the next glyph position, including kerning.
std::size_t donut::graphics::Text::ShapedGlyphInfo::shapedLineIndex |
Index of the ShapedLineInfo corresponding to the line that this glyph is part of.
std::size_t donut::graphics::Text::ShapedGlyphInfo::stringOffset |
Byte offset in the input string of the first code unit that this glyph originated from.