LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash).
I am trying to include a font that I created from https://lvgl.io/tools/fontconverter. I placed this converted tft to c file in my project directory under a directory called custom_fonts
I try and use the following call to set_text_font but fails because gotham_bold_80 is not found in lvgl_sys. This makes sense because gotham_bold_80 is not included in lvgl_sys/fonts.
error[E0425]: cannot find value `gotham_bold_80` in crate `lvgl_sys`
--> src/main.rs:136:71
|
136 | style_time.set_text_font(unsafe { Font::new_raw(lvgl_sys::gotham_bold_80) });
| ^^^^^^^^^^^^^^ not found in `lvgl_sys`
I am trying to include a font that I created from https://lvgl.io/tools/fontconverter. I placed this converted tft to c file in my project directory under a directory called custom_fonts
I also include the ENV variable LVGL_FONTS_DIR
I try and use the following call to set_text_font but fails because gotham_bold_80 is not found in lvgl_sys. This makes sense because gotham_bold_80 is not included in lvgl_sys/fonts.
and the error
So what is the correct way to use my custom font?