Rocket::Core::FontGlyph Class Reference

#include <FontGlyph.h>

Collaboration diagram for Rocket::Core::FontGlyph:

Data Fields

word character
 The unicode code point for this glyph.
Vector2i dimensions
 The glyph's bounding box. Not to be confused with the dimensions of the glyph's bitmap!
Vector2i bearing
int advance
byte * bitmap_data
Vector2i bitmap_dimensions
 The dimensions of the glyph's bitmap.

Detailed Description

Metrics and bitmap data for a single glyph within a font face.

Author:
Peter Curry

Field Documentation

The distance from the cursor (positioned vertically on the baseline) to the top-left corner of this glyph's bitmap.

The glyph's advance; this is how far the cursor will be moved along after rendering this character.

8-bit opacity information for the glyph's bitmap. The size of the data is given by the dimensions, below. This will be NULL if the glyph has no bitmap data.


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