CUGL
Cornell University Game Library
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 http://jcatki.no-ip.org:8080/SDL_ttf/SDL_ttf.html#SEC38

Member Data Documentation

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)


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