Migrating from 7.5 to 8.1 - Custom Fonts

Description

I have 2 custom fonts, montserrat_200 and montserrat_72.

I created them using the online font generator ages ago and have been using them with 7.5 and 8.1 (Simulator) without issue.

Now I have moved to the next stage and started using them in the linux frame buffer version they dont seem to work. I get the following error:

The fonts do seem to have been compiled:

What MCU/Processor/Board and compiler are you using?

linux frame buffer

What LVGL version are you using?

8.1

What do you want to achieve?

Fonts to display

What have you tried so far?

Reviewing my lv_conf.h:

Code to reproduce

    lv_obj_set_style_text_font(lblTime, &lv_font_montserrat_200, LV_PART_MAIN);
    lv_obj_set_style_text_font(lblDate, &lv_font_montserrat_72, LV_PART_MAIN);

Screenshot and/or video

Supposed to look like (without the red box, I added that in the screenshot):

Any help would be really appreciated.

This looks like it’s the last real problem and them I’m finished. Yay!!!

@kisvegabor/@embeddedt I’m running out of ideas on this one.

Anything obvious I’m missing?

Thanks!

If it works on one platform, but not the other, the most likely explanation is some difference between their configurations. My best educated guess would be one of these settings, but I’m honestly not sure exactly why this would happen. The fbdev and SDL projects should behave almost identically.

Genius!

I didnt realise I’d made them as compressed fonts. All working now:

Thank you so much!!

1 Like