![]() |
CHGame 0.3.0
Libraries for the CHGame handheld
|
One glyph's record in a GFXfont: where its bitmap is, its size, and where it sits relative to the pen. More...
#include <CHGfx_gfxfont.h>
Public Attributes | |
| uint16_t | bitmapOffset |
| byte offset of this glyph's first row | |
| uint8_t | width |
| bitmap width in pixels | |
| uint8_t | height |
| bitmap height in pixels | |
| uint8_t | xAdvance |
| pen movement after drawing | |
| int8_t | xOffset |
| pen x -> bitmap left edge | |
| int8_t | yOffset |
| baseline -> bitmap top edge (negative up) | |
One glyph's record in a GFXfont: where its bitmap is, its size, and where it sits relative to the pen.
A glyph is drawn relative to the pen position (x, y), where y is the BASELINE, not the top:
| uint16_t GFXglyph::bitmapOffset |
byte offset of this glyph's first row
| uint8_t GFXglyph::width |
bitmap width in pixels
| uint8_t GFXglyph::height |
bitmap height in pixels
| uint8_t GFXglyph::xAdvance |
pen movement after drawing
| int8_t GFXglyph::xOffset |
pen x -> bitmap left edge
| int8_t GFXglyph::yOffset |
baseline -> bitmap top edge (negative up)