vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::FontGlyph Struct Reference

One glyph's atlas placement and layout metrics, in baked pixels. More...

#include <font_asset.h>

Public Attributes

glm::vec2 size = {0.0f, 0.0f}
glm::vec2 offset = {0.0f, 0.0f}
 Quad top-left relative to the pen on the baseline (negative y is above it).
float advance = 0.0f
 Pen advance in baked pixels.

Detailed Description

One glyph's atlas placement and layout metrics, in baked pixels.

Scale by requestedSize / pixelHeight. uvMin / uvMax address the glyph's cell in the SDF atlas (0..1, top-left origin).

Member Data Documentation

◆ size

glm::vec2 Vkm::Engine::FontGlyph::size = {0.0f, 0.0f}

Glyph quad size in baked pixels.


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