CUGL 2.3
Cornell University Game Library
Loading...
Searching...
No Matches
Public Attributes | List of all members
cugl::Font::Metrics Class Reference

#include <CUFont.h>

Public Attributes

int minx
 
int maxx
 
int miny
 
int maxy
 
int advance
 

Detailed Description

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

Member Data Documentation

◆ advance

int cugl::Font::Metrics::advance

The distance from the origin of this glyph to the next

◆ maxx

int cugl::Font::Metrics::maxx

The maximum x-offset of the glyph from the origin (right side)

◆ maxy

int cugl::Font::Metrics::maxy

The maximum y-offset of the glyph from the origin (top edge)

◆ minx

int cugl::Font::Metrics::minx

The minimum x-offset of the glyph from the origin (left side)

◆ miny

int cugl::Font::Metrics::miny

The minimum y-offset of the glyph from the origin (bottom edge)


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