From ac3df0dfb0fdd704542ab45cb9970149ffcd0fea Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Mon, 9 Sep 2024 22:17:45 -0400 Subject: [PATCH] adding font readme --- fonts/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/fonts/README.md b/fonts/README.md index 68f5422..e44c0a6 100644 --- a/fonts/README.md +++ b/fonts/README.md @@ -1,3 +1,14 @@ # Fonts -`inter_20.bin`: 20px 4 bpp font \ No newline at end of file +Generated with https://lvgl.io/tools/fontconverter + +`inter_20.bin`: 20px 4 bpp font + +Adding a custom font to the binary: + +highlevel +- Create `lv_font_my_26.c` using tool above +- add font to lvgl/src/font +- update lvgl.h with `#define LV_FONT_CUSTOM_DECLARE LV_FONT_DECLARE(lv_font_my_26)` +- Build and import using `lv.font_my_26` +