Skip to content
Dimitris Lampridis edited this page Sep 6, 2019 · 1 revision

How to add a new custom font definition?

When adding a .c file with a custom font definition, you need to define the "fontdatatype" type at the top of the file, just like it is done in https://github.com/gnulabis/UTFT-ESP/blob/master/UTFT/DefaultFonts.c:

if defined(ESP8266) || defined(ESP32)
        #include <Arduino.h>
        #include <pgmspace.h>
        #define fontdatatype const uint8_t
#endif
Clone this wiki locally