GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A data describing single Glyph. More...
#include <gp_font.h>
Data Fields | |
uint8_t | width |
Bitmap width in pixels. | |
uint8_t | height |
Bitmap heigth in pixels. | |
int8_t | bearing_x |
An X offset to be applied before we start drawing. | |
int8_t | bearing_y |
An Y offset from baseline to the top of the bitmap. | |
uint8_t | advance_x |
An offset to be applied after drawing. | |
uint8_t | bitmap [] |
A character bitmap. | |
A data describing single Glyph.
Note that glyph do not necessarily correspond to one character (for example ligature is a glyph but corresponds to at least two characters).
The glyphs are rendered to horizontal baseline, vertical rendering is not supported.
The structure could contain glyphs of different BPP and information about the bitmap format is stored in the font structure. The bitmap lines are byte aligned.
uint8_t gp_glyph::advance_x |
uint8_t gp_glyph::bitmap[] |