lvgl / lv_utils

Convert images or system fonts to C arrays. Written for LVGL embedded GUI library
https://littlevgl.com
54 stars 38 forks source link

convert hex font #5

Closed sdalu closed 6 years ago

sdalu commented 6 years ago

Convert monospace hex font, only 1 bpp supported

kisvegabor commented 6 years ago

Thank you very much! Have you already tested the converter with LittelvGL?

sdalu commented 6 years ago

Yes, I generated unscii-16.hex and unscii-8.hex fonts and run it on ssd1306.

Just a side question, was surprise to see only 13x3 characters (8x8) on my 128x32 display. It seems 2px are inserted between characters, is it configurable?

kisvegabor commented 6 years ago

Great! Then I merge your code. Thank you!

To add a letter space you can use it' style attribute. E.g: style.text.letter_space = 2; Learn more about the styles here: https://littlevgl.com/basics#styles