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

Screen-space quad for one rasterized glyph. More...

#include <TypeSetter.hpp>

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

Public Attributes

uint32_t codepoint { 0 }
 Unicode codepoint that produced this quad.
 
float uv_x0
 
float uv_x1
 
float uv_y0
 Top-left UV in atlas space.
 
float uv_y1
 Bottom-right UV in atlas space.
 
float x0
 
float x1
 
float y0
 Top-left pixel position.
 
float y1
 Bottom-right pixel position.
 

Detailed Description

Screen-space quad for one rasterized glyph.

All coordinates are in pixels relative to the pen origin passed to lay_out(). The caller is responsible for converting to NDC or whatever coordinate system the render path expects.

UV coordinates are in normalised [0, 1] atlas space, matching the values stored in GlyphMetrics.

Definition at line 18 of file TypeSetter.hpp.


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