← API Reference Struct

asge::media::GlyphMetrics

Metrics and atlas location for a single baked glyph.

#include <Font.hpp>

Collaboration

classDiagram
    class N2["asge::math::Rect"]
    class N1["asge::media::GlyphMetrics"]
    N1 --> N2 : uv_rect
    click N2 href "structasge_1_1math_1_1Rect.html"
    click N1 href "structasge_1_1media_1_1GlyphMetrics.html"

Produced when a font is baked into an atlas (see Font::Load). uv_rect locates the glyph's bitmap within the shared atlas image; the remaining fields describe how to position it relative to the pen when laying out text.

Public Attributes

#math::Rect uv_rect
#math::Int2 bearing
#int advance