Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::TextBackend::ShapedGlyph Struct Reference

A single shaped glyph with advance and cluster info. More...

#include "donner/svg/text/TextBackend.h"

Public Attributes

int glyphIndex = 0
 Backend-specific glyph ID.
double xAdvance = 0
 Nominal horizontal advance (without kerning).
double yAdvance = 0
 Nominal vertical advance (without kerning).
double xKern = 0
 Kerning adjustment to apply before this glyph.
double yKern = 0
 Kerning adjustment (vertical mode).
double xOffset = 0
 Horizontal offset (GPOS mark positioning; 0 for simple).
double yOffset = 0
 Vertical offset (GPOS mark positioning; 0 for simple).
uint32_t cluster = 0
 Byte offset into the shaped text range.
float fontSizeScale = 1.0f
 < 1.0 for synthesized small-caps glyphs.

Friends

std::ostream & operator<< (std::ostream &os, const ShapedGlyph &glyph)
 Prints every field, for debugging and test failure messages.

Detailed Description

A single shaped glyph with advance and cluster info.


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