How to use fonts from u8g2_fonts.c ?
-
I use LILYGOTTGO 1,54-inch wrist e-paper.
I try to use some fonts from u8g2_fonts.c, but I don't know how to do this. I added#include <u8g2_fonts.h>
to the beginning of my source and
display.setFont(u8g2_font_unifont_t_cyrillic);
to the setup, but I get the error
'u8g2_font_unifont_t_cyrillic' was not declared in this scope
-
I don't know if the font format of U8G2 is consistent with that of GXEPD. It is recommended that you refer to the font modification of GXEPD, which indicates that it is a subclass of Adafruit_GFX.
Link: https://github.com/ZinggJM/GxEPD