libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::Text::ShapedGlyphInfo Struct Reference

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...
 

Detailed Description

Additional information about a single shaped glyph, including some data that is not strictly required for simple rendering.

See also
ShapedGlyph
ShapedLineInfo

Member Data Documentation

◆ shapedOffset

vec2 donut::graphics::Text::ShapedGlyphInfo::shapedOffset

Scaled offset from the starting position to draw this glyph at, in pixels.

◆ shapedAdvance

vec2 donut::graphics::Text::ShapedGlyphInfo::shapedAdvance

Scaled offset to apply in order to advance to the next glyph position, including kerning.

◆ shapedLineIndex

std::size_t donut::graphics::Text::ShapedGlyphInfo::shapedLineIndex

Index of the ShapedLineInfo corresponding to the line that this glyph is part of.

◆ stringOffset

std::size_t donut::graphics::Text::ShapedGlyphInfo::stringOffset

Byte offset in the input string of the first code unit that this glyph originated from.


The documentation for this struct was generated from the following file: