I was using lv_font_conv tools to make font, command: lv_font_conv --font LCDM2B__.TTF --bpp 4 -r 0x20-0x7f --size 40 --format lvgl -o lcdm2b_s40_v60.c
It works and created a lvgl C file. lcdm2b_s40_v60.c (73.5 KB) , The original ttf font are here LCDM2B__.zip (8.3 KB)
What happens if you just create one label at X/Y (0,0), change the font on that label, and display some simple text like “Hello world”? Does that work?
Try the webpage version. There are not so many parameters to worry about. Pay attention to checking whether it’s a coding problem, which I’ve just encountered.
@TemcoHeng As far as i see in --format dump, contours are not distorted, but some are missed. Can this be caused by reverse paths orientation? What is the initial source of your font? Something “official” or hand-made?
Looks like bug in opentype.js. If i take any glyph, manually reverse any contour direction in fontforge, and then fix it back, glyph is dumped as expected.
I’d prefer to say “buggy font”, but can’t imagine way to reach such effect :). 99% of problems are caused by bad contours orientation. But this font seems ok.