Creating custom font with lv_micropython on Raspberry Pi 5

Hi All,
I am running lv_micropython on Raspberry Pi 5 and am trying to load a custom font (not the default montserrat ones) with the following lines:

font_Number_extra = lv.binfont_create("./ui_font_Number_extra.bin") 
print(font_Number_extra)

There was no error message and lvgl_simulator starts but the print always gives me “None”, meaning the font is not created I guess.

I have also tried the following three methods:

lv.binfont_create("A:ui_font_Font1.bin")
lv.binfont_create("./ui_font_Font1.bin")
lv.binfont_create("/home/absolute-path/..../ui_font_Font1.bin")

None of them is working… does anyone know what is going on?

aehm, for my understanding: why you want to create a font with a binary file? how you put your custom font inside?
and the next question: why you make an lv_micropython on a rapsberry pi 5 ??? … i think is for micropython on an ESP32 / STM or some other small microcontrollers…

Hi fabse-hack,

Thanks for the reply.
I have just figured out the solutions. there are some additional settings in lv_conf.h I need to change to make it work.

As for why RPI 5, I find this to be a more streamlined approach to make software porotypes before putting it on MCUs. happy new year !