![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
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. | |
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).
| glm::vec2 Vkm::Engine::FontGlyph::size = {0.0f, 0.0f} |
Glyph quad size in baked pixels.