Is there a repo with the source code for the 5.3 version of the font converter?
I’m worried that if I revert back to using 5.3 (mostly because of the fonts in 6.0) that I will have access to the font converter offline, in case the 5.3 version is removed.
What MCU/Processor/Board and compiler are you using?
What do you want to achieve?
Download 5.3 font converter source code
What have you tried so far?
Browsing the repo for the font converter, there are only 6.0 tags
Have you tried it with the newest font converter from https://github.com/littlevgl/lv_font_conv and the dev-6.1 branch? We have been aware of the issue for a few months and recently @puzrin attempted to fix it by reverting a component back to what we used in 5.3.
Agreed, on 5.3 I used 16px conversion, on 6.0 I had to switch to 14px to get it in the same size. Is it because of the way traverses (?) are handled in the 6.0 conversion? I admit to knowing almost zero about fonts.
Would limiting the character set to only capital letters change the way it handles the conversion?
I’d suggest you to inspect what you really have on input, prior to decide is this LVGL problem or font should be changed to something better. About “good look in 5.3”… broken clock can show right time twice per day, but this is not very useful :).
Try this things:
Use FontForge to open source and see what your font has inside
In convertor, try --format dump to quick check bitmaps and glyph parameters (in separate json file)
In convertor, add env DEBUG=* before command with --format bin, to see more tech logs. For example, if kerning extracted or not and how table sizes depend on cli options.
What i see now:
Input font has no kerning info.
Letters are really drawn with such spaces (E, U, G have 2px space before + 1px after, and other letters have 1px before and 1 px after). That’s as on your screenshot.
So, convertor + lvgl display exactly what you have.
All manipulations should be done BEFORE conversion, with TTF font. Convertor + lvgl in 6.0+ try to display font exactly as is was designed by authors, without any unpredictable magick.
In theory, you can add kerning info in font editor, but i never tried to do so. FontForge has feature of space autoalign, you may try to play with it.
My personal recommendation is to find a “right” pixel-perfect font of desired size, which do not need hacking. We discussed this (with links) in tracker, but nobody had time to inspect existing collections. Also, you may find font links in u8g2 wiki.