NAME
ALLEGRO_GLYPH - Allegro 5 APISYNOPSIS
-
#include <allegro5/allegro_font.h> typedef struct ALLEGRO_GLYPH ALLEGRO_GLYPH;
DESCRIPTION
A structure containing the properties of a character in a font.-
typedef struct ALLEGRO_GLYPH { ALLEGRO_BITMAP *bitmap; // the bitmap the character is on int x; // the x position of the glyph on bitmap int y; // the y position of the glyph on bitmap int w; // the width of the glyph in pixels int h; // the height of the glyph in pixels int kerning; // pixels of kerning (see below) int offset_x; // x offset to draw the glyph at int offset_y; // y offset to draw the glyph at int advance; // number of pixels to advance after this character } ALLEGRO_GLYPH;
SINCE
5.2.1
[Unstable API]: This API is new and subject to refinement.
SEE ALSO
al_get_glyph(3alleg5)Allegro reference manual |