|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
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 |
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.