CUGL 2.1
Cornell University Game Library
|
#include <CUFont.h>
Public Attributes | |
int | minx |
int | maxx |
int | miny |
int | maxy |
int | advance |
This class is a simple struct to store glyph metric data
A glyph metric stores the bounding box of a glyph, pluse the spacing information around it. The bouding box is offset from an origin, and the advance the distance to the next glyph origin. For more information, see https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC38
int cugl::Font::Metrics::advance |
The distance from the origin of this glyph to the next
int cugl::Font::Metrics::maxx |
The maximum x-offset of the glyph from the origin (right side)
int cugl::Font::Metrics::maxy |
The maximum y-offset of the glyph from the origin (top edge)
int cugl::Font::Metrics::minx |
The minimum x-offset of the glyph from the origin (left side)
int cugl::Font::Metrics::miny |
The minimum y-offset of the glyph from the origin (bottom edge)