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

Per-glyph layout and UV data produced by GlyphAtlas. More...

#include <GlyphAtlas.hpp>

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

Public Attributes

int32_t advance_x { 0 }
 Horizontal advance in pixels (26.6 fixed-point >> 6).
 
int32_t bearing_x { 0 }
 Horizontal bearing in pixels (from FT_GlyphSlot).
 
int32_t bearing_y { 0 }
 Vertical bearing in pixels (from FT_GlyphSlot).
 
uint32_t height { 0 }
 Glyph bitmap height in pixels.
 
float uv_x0 { 0.F }
 Left UV edge in atlas texture.
 
float uv_x1 { 0.F }
 Right UV edge in atlas texture.
 
float uv_y0 { 0.F }
 Top UV edge in atlas texture.
 
float uv_y1 { 0.F }
 Bottom UV edge in atlas texture.
 
uint32_t width { 0 }
 Glyph bitmap width in pixels.
 

Detailed Description

Per-glyph layout and UV data produced by GlyphAtlas.

UV coordinates are in normalised [0, 1] atlas space. Bearing and size are in pixels at the atlas's declared pixel_size.

When HarfBuzz is introduced it will supply glyph_index and position offsets directly; this struct remains the downstream currency.

Definition at line 26 of file GlyphAtlas.hpp.


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