You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use LVGL 9.1.1 version. After using the official online and offline font conversion tools to convert a Chinese character, the demo example shows garbled characters on the LCD. I don't know where the error is. Can you give me some suggestions? thinks
The command to use the offline conversion tool is:
lv_font_conv --no-compress --format bin --font QingNiaoHuaGuangJianMeiHei-2.ttf -o my_font-guo.bin --bpp 4 --size 30 --symbols "国"
I used the online method to save the bin file and compared it with the bin file generated above. The generated bin files are the same.
the test code is:
void lvgl_font_test(void)
{
lv_font_t * font_18 = lv_binfont_create("0:my_font.bin");
if (font_18 == NULL)
{
printf("font load failed \r\n");
return;
}
I am not sure if those UTF codes are correct because I have worked so little with those.
I am newer trusting encodings of editors and consoles so I would try numerical values first.
I use LVGL 9.1.1 version. After using the official online and offline font conversion tools to convert a Chinese character, the demo example shows garbled characters on the LCD. I don't know where the error is. Can you give me some suggestions? thinks
The command to use the offline conversion tool is:
lv_font_conv --no-compress --format bin --font QingNiaoHuaGuangJianMeiHei-2.ttf -o my_font-guo.bin --bpp 4 --size 30 --symbols "国"
I used the online method to save the bin file and compared it with the bin file generated above. The generated bin files are the same.
the test code is:
void lvgl_font_test(void)
{
lv_font_t * font_18 = lv_binfont_create("0:my_font.bin");
if (font_18 == NULL)
{
printf("font load failed \r\n");
return;
}
}
The text was updated successfully, but these errors were encountered: