ESPectro32 Library
Library for using ESPectro32 board
 All Classes Functions Variables Enumerations Enumerator Pages
gfxfont.h
1 // Font structures for newer Adafruit_GFX (1.1 and later).
2 // Example fonts are included in 'Fonts' directory.
3 // To use a font in your Arduino sketch, #include the corresponding .h
4 // file and pass address of GFXfont struct to setFont(). Pass NULL to
5 // revert to 'classic' fixed-space bitmap font.
6 
7 #ifndef _GFXFONT_H_
8 #define _GFXFONT_H_
9 
10 typedef struct { // Data stored PER GLYPH
11  uint16_t bitmapOffset; // Pointer into GFXfont->bitmap
12  uint8_t width, height; // Bitmap dimensions in pixels
13  uint8_t xAdvance; // Distance to advance cursor (x axis)
14  int8_t xOffset, yOffset; // Dist from cursor pos to UL corner
15 } GFXglyph;
16 
17 typedef struct { // Data stored for FONT AS A WHOLE:
18  uint8_t *bitmap; // Glyph bitmaps, concatenated
19  GFXglyph *glyph; // Glyph array
20  uint8_t first, last; // ASCII extents
21  uint8_t yAdvance; // Newline distance (y axis)
22 } GFXfont;
23 
24 #endif // _GFXFONT_H_
Definition: gfxfont.h:10
Definition: gfxfont.h:17