Reversed characters when trying lv_examples_fonts in framebuffer on Ubuntu 18.04

Hello, I tried the arial_20 fonts in the examples, but I got the charaters reversed. When I use the English fonts, there is no problems like this.


And the main.c is
#include <unistd.h>
#include “lvgl/lvgl.h”
#include “lv_drivers/display/fbdev.h”

#define DISP_BUF_SIZE (80*LV_HOR_RES_MAX)

int main(void)
{
/LittlevGL init/
lv_init();

/*Linux frame buffer device init*/
fbdev_init();

/A small buffer for LittlevGL to draw the screen’s content/
static lv_color_t buf[DISP_BUF_SIZE];

/*Initialize a descriptor for the buffer*/
static lv_disp_buf_t disp_buf;
lv_disp_buf_init(&disp_buf, buf, NULL, DISP_BUF_SIZE);

/*Initialize and register a display driver*/
lv_disp_drv_t disp_drv;
lv_disp_drv_init(&disp_drv);
disp_drv.buffer = &disp_buf;
disp_drv.flush_cb = fbdev_flush;
lv_disp_drv_register(&disp_drv);

lv_tutorial_fonts();

/*Handle LitlevGL tasks (tickless mode)*/
while(1) {
    lv_tick_inc(5);
    lv_task_handler();
    usleep(5000);
}

return 0;

}

It seems the font was outdated. I’ve generated it again and upload it.
Now it works fine for me.

Thanks, now it works.