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

Data required to render a single shaped glyph relative to at any given starting position. More...

#include <donut/graphics/Text.hpp>

Public Attributes

Fontfont
 Non-owning read-only non-null pointer to the font used to shape this glyph. More...
 
vec2 shapedOffset
 Scaled offset from the starting position to draw this glyph at, in pixels. More...
 
vec2 shapedSize
 Scaled size of this glyph's rectangle, in pixels. More...
 
u32 characterSize
 Character size that this glyph was shaped at. More...
 
char32_t codePoint
 Unicode code point of this glyph. More...
 

Detailed Description

Data required to render a single shaped glyph relative to at any given starting position.

See also
ShapedGlyphInfo
ShapedLineInfo

Member Data Documentation

◆ font

Font* donut::graphics::Text::ShapedGlyph::font

Non-owning read-only non-null pointer to the font used to shape this glyph.

◆ shapedOffset

vec2 donut::graphics::Text::ShapedGlyph::shapedOffset

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

◆ shapedSize

vec2 donut::graphics::Text::ShapedGlyph::shapedSize

Scaled size of this glyph's rectangle, in pixels.

◆ characterSize

u32 donut::graphics::Text::ShapedGlyph::characterSize

Character size that this glyph was shaped at.

◆ codePoint

char32_t donut::graphics::Text::ShapedGlyph::codePoint

Unicode code point of this glyph.


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