Closed sdalu closed 6 years ago
Yes, it is now losing the monospace characteristic and it's a good feature to add! I can't promise that I will have time for it in the next days.
Would somebody like to contribute in it?
Got a small ruby program, generating 1-bpp font from .hex Need some testing, will post it
It's great! We can use it until this feature isn't implemented in the "original" font converter.
For people browsing the issues, code is available here: https://github.com/littlevgl/lv_utils/blob/master/hex2lvfont.rb
what is .hex format for font? try ttf and bdf, invalid format for hex2lvfont.rb I dont know ruby, cannt understand it syntax.
monospace font realy actual
The hex2lvfont.rb
converter only deal with font in hex format [1].
The two fonts I know that are defined this way are:
[1] https://en.wikipedia.org/wiki/GNU_Unifont#The_.hex_font_format
I updated the font converter with monospace feature. If you tested it and have any remarks please open a new issue for it.
Based on the suggestion here: https://github.com/littlevgl/lvgl/issues/229
I modified the monospace support to leave letters "slim" (not extra columns to not occupy extra space) and updated drawing algorithm of the library align letters during rendering. The updates are in lvgl/dev-5.2
branch.
Font converter is using ttf fonts, and when trying to convert the unscii fonts, the monospace characteristic of the font is lost. Can you add a converter that will retain the fixed width, perhaps decoding the .hex file format of the font.