Default font not clear in red background


I’m using default lvgl fonts - montserrat in my screens. While displaying white fonts on red background, there is no clarity and readability. But if I’m displaying on white fonts on green background, it is displaying perfectly fine.

I have tried changing the shades of the red background but no major impact on readability.

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

Custom Board

What LVGL version are you using?


What do you want to achieve?

Clarity and Readability - white fonts on red background

Using a darker shade of red should make the text more readable in theory. Can you send a picture of what it looks like now?

Hi @Tinus

Hello, I believe the issue might be that the default font has subpixel rendering or uses glyph color info to render the font. You may have to make your own font for such a small display. See: Online font converter - TTF or WOFF fonts to C array | LVGL

Hi @Tinus ,

I have tried using the custom fonts and incorporated by opting with and without subpixel rendering and there is no visual clarity. How can I solve this? Thanks.

I tried enabling this option in lv_config.h file - /Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)/
#define LV_COLOR_16_SWAP 1

It’s working now and the fonts are more clear and readable. Thanks @Tinus for your help