MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Portal::Text::GlyphOutline Struct Reference

Vector outline for a single glyph as a flat polyline sequence. More...

#include <GlyphOutline.hpp>

+ Collaboration diagram for MayaFlux::Portal::Text::GlyphOutline:

Public Attributes

int32_t advance_x { 0 }
 
uint32_t codepoint { 0 }
 
std::vector< uint32_t > contour_ends
 
std::vector< glm::vec2 > points
 

Detailed Description

Vector outline for a single glyph as a flat polyline sequence.

Each contour in the glyph outline is appended in order. Contour boundaries are recorded in contour_ends: contour_ends[i] is the exclusive end index into points for contour i. Points within a contour are in the winding order specified by the font (counter-clockwise for filled regions, clockwise for holes in TrueType; the caller interprets winding as needed).

All coordinates are in pixels at the pixel_size passed to decompose_glyph(), with Y increasing downward (matching GlyphQuad convention). The origin is the glyph's pen origin: (0, 0) is the advance origin on the baseline.

advance_x mirrors GlyphMetrics::advance_x for layout without a GlyphAtlas.

Definition at line 25 of file GlyphOutline.hpp.


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