ESPectro32 Library
Library for using ESPectro32 board
Main Page
Related Pages
Classes
Files
Examples
File List
All
Classes
Functions
Variables
Enumerations
Enumerator
Pages
lib
Adafruit-GFX
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_
GFXglyph
Definition:
gfxfont.h:10
GFXfont
Definition:
gfxfont.h:17
Generated on Sat Aug 26 2017 15:37:36 for ESPectro32 Library by
1.8.6