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

Information about a line of shaped glyphs, including some data that is not strictly required for simple rendering. More...

#include <donut/graphics/Text.hpp>

Public Attributes

vec2 shapedOffset
 Scaled offset of the baseline at the start of this line of text. More...
 
vec2 shapedSize
 Scaled total size of this line. More...
 
std::size_t shapedGlyphOffset
 Index of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that is part of this line. More...
 
std::size_t stringOffset
 Byte offset in the input string of the first code unit that the first glyph that is part of this line originated from. More...
 

Detailed Description

Information about a line of shaped glyphs, including some data that is not strictly required for simple rendering.

See also
ShapedGlyph
ShapedGlyphInfo

Member Data Documentation

◆ shapedOffset

vec2 donut::graphics::Text::ShapedLineInfo::shapedOffset

Scaled offset of the baseline at the start of this line of text.

◆ shapedSize

vec2 donut::graphics::Text::ShapedLineInfo::shapedSize

Scaled total size of this line.

◆ shapedGlyphOffset

std::size_t donut::graphics::Text::ShapedLineInfo::shapedGlyphOffset

Index of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that is part of this line.

◆ stringOffset

std::size_t donut::graphics::Text::ShapedLineInfo::stringOffset

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


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