ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::ShapedGlyph Struct Reference

Single shaped glyph positioned along a laid-out line. More...

#include <TextEngine.hpp>

Public Attributes

uint32_t fontId {0}
 FontHandle::id that owns glyphId (0 in synthetic fallback mode).
uint32_t glyphId {0}
 Font-specific glyph index (GID).
uint32_t cluster {0}
 Inclusive byte offset in the original UTF-8 input string.
uint32_t clusterEnd {0}
 Exclusive byte offset of this glyph's cluster in the UTF-8 string.
float x {0.0f}
 Pen X offset from the start of the line (logical px).
float xAdvance {0.0f}
 Logical advance including tracking on cluster boundaries.
float xOffset {0.0f}
 HarfBuzz horizontal glyph offset (logical px).
float yOffset {0.0f}
 HarfBuzz vertical glyph offset (positive upward, logical px).
bool rtl {false}
 true if this glyph belongs to a right-to-left Bidi run.

Detailed Description

Single shaped glyph positioned along a laid-out line.


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