nomlib
Loading...
Searching...
No Matches
nom::Glyph Struct Reference

Container structure for font data. More...

#include <Glyph.hpp>

Public Attributes

IntRect bounds
 Bounding rectangle coordinates of the glyph as per the texture source.
int advance
 Offset to move horizontally to the next character (spacing).
Point2i offset = Point2i::zero
 The additional X, Y rendering offsets to apply when copying the glyph from the texture source to the output.

Detailed Description

Container structure for font data.

Definition at line 43 of file Glyph.hpp.

Member Data Documentation

◆ advance

int nom::Glyph::advance

Offset to move horizontally to the next character (spacing).

Definition at line 54 of file Glyph.hpp.

◆ bounds

IntRect nom::Glyph::bounds

Bounding rectangle coordinates of the glyph as per the texture source.

Definition at line 51 of file Glyph.hpp.

◆ offset

Point2i nom::Glyph::offset = Point2i::zero

The additional X, Y rendering offsets to apply when copying the glyph from the texture source to the output.

Remarks
This member field is implemented to support the BMFont file spec – char tag's 'xoffset' and 'yoffset' fields.
See also
nom::BMFont, nom::Text.

Definition at line 63 of file Glyph.hpp.


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