①https://lvgl.io/tools/fontconverter 生成中文c文件
②打开c文件修改如下
#ifdef LV_LVGL_H_INCLUDE_SIMPLE#include "lvgl.h"#else#include "lvgl/lvgl.h"#endif
改为
#include "../../lvgl.h"#include "lv_font.h"#include "lv_font_fmt_txt.h"
③将文件复制到Arduino/libraries/lvgl/src/font/
④在ino中 LV_FONT_DECLARE(zh_font);