acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
User_Custom_Fonts.h (1740B)
1 2 // Custom "Adafruit" compatible font files can be added to the "TFT_eSPI/Fonts/Custom" folder 3 // Fonts in a suitable format can be created using a Squix blog web based tool here: 4 /* 5 https://blog.squix.org/2016/10/font-creator-now-creates-adafruit-gfx-fonts.html 6 */ 7 8 // Note: At the time of writing there is a last character code definition bug in the 9 // Squix font file format so do NOT try and print the tilda (~) symbol (ASCII 0x7E) 10 // Alternatively look at the end of the font header file and edit: 0x7E to read 0x7D 11 /* e.g. vvvv 12 (uint8_t *)Orbitron_Light_32Bitmaps,(GFXglyph *)Orbitron_Light_32Glyphs,0x20, 0x7D, 32}; 13 ^^^^ 14 */ 15 16 // When font files are placed in the Custom folder (TFT_eSPI\Fonts\Custom) then they must 17 // also be #included here: 18 19 // The CF_OL24 etc are a shorthand reference, but this is not essential to use the fonts 20 21 #ifdef LOAD_GFXFF 22 23 // New custom font file #includes 24 #include <Fonts/Custom/Orbitron_Light_24.h> // CF_OL24 25 #include <Fonts/Custom/Orbitron_Light_32.h> // CF_OL32 26 #include <Fonts/Custom/Roboto_Thin_24.h> // CF_RT24 27 #include <Fonts/Custom/Satisfy_24.h> // CF_S24 28 #include <Fonts/Custom/Yellowtail_32.h> // CF_Y32 29 30 #endif 31 32 // Shorthand references - any coding scheme can be used, here CF_ = Custom Font 33 // The #defines below MUST be added to sketches to use shorthand references, so 34 // they are only put here for reference and copy+paste purposes! 35 /* 36 #define CF_OL24 &Orbitron_Light_24 37 #define CF_OL32 &Orbitron_Light_32 38 #define CF_RT24 &Roboto_Thin_24 39 #define CF_S24 &Satisfy_24 40 #define CF_Y32 &Yellowtail_32 41 */