group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
GlyphInfo Struct Reference

Per-glyph metrics stored after SDF atlas bake. More...

#include <SdfFont.hpp>

Public Attributes

glm::vec2 uvMin {}
 Normalised atlas UV top-left.
 
glm::vec2 uvMax {}
 Normalised atlas UV bottom-right.
 
glm::vec2 bearing {}
 Offset from cursor baseline to glyph top-left (pixels at bake size).
 
float advance {}
 Horizontal cursor advance (pixels at bake size).
 
float width {}
 Glyph pixel width at bake size.
 
float height {}
 Glyph pixel height at bake size.
 

Detailed Description

Per-glyph metrics stored after SDF atlas bake.

Member Data Documentation

◆ advance

float GlyphInfo::advance {}

Horizontal cursor advance (pixels at bake size).

◆ bearing

glm::vec2 GlyphInfo::bearing {}

Offset from cursor baseline to glyph top-left (pixels at bake size).

◆ height

float GlyphInfo::height {}

Glyph pixel height at bake size.

◆ uvMax

glm::vec2 GlyphInfo::uvMax {}

Normalised atlas UV bottom-right.

◆ uvMin

glm::vec2 GlyphInfo::uvMin {}

Normalised atlas UV top-left.

◆ width

float GlyphInfo::width {}

Glyph pixel width at bake size.


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