27 lines
		
	
	
		
			973 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			973 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
| //        SPDX-License-Identifier:        GPL-3.0
 | |
| //      original source: https://github.com/Nkawu/TFT_22_ILI9225
 | |
| 
 | |
| // Font structures like Adafruit_GFX (1.1 and later).
 | |
| // Example fonts are included in 'fonts' directory.
 | |
| // To use a font in your Arduino sketch, #include the corresponding .h
 | |
| // file and pass address of GFXfont struct to setFont().
 | |
| 
 | |
| #ifndef _GFFFONT_H_
 | |
| #define _GFFFONT_H_
 | |
| 
 | |
| typedef struct { // Data stored PER GLYPH
 | |
| 	uint16_t bitmapOffset;     // Pointer into GFXfont->bitmap
 | |
| 	uint8_t  width, height;    // Bitmap dimensions in pixels
 | |
| 	uint8_t  xAdvance;         // Distance to advance cursor (x axis)
 | |
| 	int8_t   xOffset, yOffset; // Dist from cursor pos to UL corner
 | |
| } GFXglyph;
 | |
| 
 | |
| typedef struct { // Data stored for FONT AS A WHOLE:
 | |
| 	uint8_t  *bitmap;      // Glyph bitmaps, concatenated
 | |
| 	GFXglyph *glyph;       // Glyph array
 | |
| 	uint8_t   first, last; // ASCII extents
 | |
| 	uint8_t   yAdvance;    // Newline distance (y axis)
 | |
| } GFXfont;
 | |
| 
 | |
| #endif // _GFFFONT_H_
 |