A single positioned glyph in a laid-out text run.
Produced by the text engine for simple and full shaping backends.
| Class Members |
|
bool |
absoluteInlinePosition = false |
This visual chunk origin applies an authored horizontal absolute position. |
|
bool |
allowSyntheticOblique = true |
Immutable outline policy resolved from the source span and its requested font style. |
|
uint32_t |
cluster = 0 |
Byte offset into the span text for the glyph's source cluster. Byte offset of the SVG positioning group; absent uses the source cluster. |
|
bool |
emergencyBreakBefore = false |
A safe emergency boundary precedes this visual glyph group after contextual shaping. |
|
bool |
emergencyLineStart = false |
First visual group of a planned line, retaining logical order between backward lines. |
|
FontHandle |
font |
Face for a cluster that the run's face cannot render; null when TextRun::font renders it. Use GlyphFont to resolve the face that draws the glyph. |
|
float |
fontSizeScale = 1.0f |
Per-glyph font size multiplier (< 1.0 for small-caps). |
|
int |
glyphIndex = 0 |
Glyph index (backend-specific: stbtt or HarfBuzz). |
|
bool |
hangingBefore = false |
Preserved logical end space hanging before a backward line's visual content. |
|
optional< uint32_t > |
positioningCluster |
|
|
bool |
rightToLeft = false |
Resolved horizontal source-character direction. Global visual adjacency for source-span decoration continuity; absent on legacy layouts. |
|
double |
rotateDegrees = 0 |
Per-glyph rotation in degrees. |
|
bool |
sideways = false |
|
|
float |
stretchScaleX = 1.0f |
Additional X-axis glyph stretch from lengthAdjust. |
|
float |
stretchScaleY = 1.0f |
Additional Y-axis glyph stretch from lengthAdjust. |
|
optional< double > |
textPathLocalRotateDegrees |
Authored rotation before path warping. True when vertical layout set this glyph sideways, a quarter turn from upright, so the glyph's own x axis runs along the inline axis. |
|
double |
textPathNormalOffset = 0.0 |
Offset from the path along its left normal. |
|
optional< double > |
textPathOrigin |
Logical path distance for a stretched outline origin. |
|
double |
verticalOriginOffset = 0 |
Inline-axis distance from the pen position to an upright vertical glyph's origin, already included in yPosition. Zero for horizontal and sideways glyphs. |
|
optional< uint32_t > |
visualOrder |
|
|
double |
xAdvance = 0 |
Horizontal advance; staged paths use canonical local X. |
|
double |
xKern = 0 |
Kerning adjustment applied before this glyph (for path layout). |
|
double |
xPosition = 0 |
Absolute X position for this glyph. |
|
double |
yAdvance = 0 |
Flat vertical advance; zero after text-path staging. |
|
double |
yPosition = 0 |
Absolute Y baseline position. |