GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Font2D::GlyphMetrics Struct Reference

Dimensions of a single glyph in this font, for shaping text. More...

#include <GREM/graphics_2d/Font2D.hpp>

Public Attributes

vec2 size
 Size of this glyph's rectangle when rendered, in pixels.
vec2 bearing
 Offset from the baseline to apply to the glyph's rectangle position when rendering this glyph.
float advance
 Horizontal offset to apply in order to advance to the next glyph position, excluding any kerning.

Detailed Description

Dimensions of a single glyph in this font, for shaping text.

Member Data Documentation

◆ size

vec2 grem::graphics::Font2D::GlyphMetrics::size

Size of this glyph's rectangle when rendered, in pixels.

◆ bearing

vec2 grem::graphics::Font2D::GlyphMetrics::bearing

Offset from the baseline to apply to the glyph's rectangle position when rendering this glyph.

◆ advance

float grem::graphics::Font2D::GlyphMetrics::advance

Horizontal offset to apply in order to advance to the next glyph position, excluding any kerning.


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