hi @blackbird
TL;DR fonts are hard coded and basic, potential future enhancement but nothing soon. And the long winded rambling version :) The fonts that the display uses are actually hard-code bitmaps, tiles, and they're limited to the ASCII set only - for the clock "fonts" its actually more restrictive, numbers, a space, a colon, a hyphen, and just recently the AM/PM tiles is all that's defined. So there's no real fonts in use and along with that no language specifics and no Unicode. Everything beyond the base library fonts I've had to draw, store or code. Labor of love - it keeps me off the streets ;) Google '"c" font library OLED' and you'll see how restrictive this implementation is. I'm looking for a new library at the moment that supports many flavors of OLED without having to code up a driver, there are several offerings for python and in the C universe some feature rich arduino examples. Monitor lives in the C world to keep it small and tight, I'd much prefer to be developing in several other languages, python, golang, rust, but they are not as controlled and "tight". Actually rust likely comes close. Python luma.oled supports fonts on the fly, and that's the type of facility I'm looking for. There's a font conversion tool that takes a standard font and converts to a bitmap tile set, I used it to generate a couple of test fonts but didn't carry it any further. That utility is written in, of course, python... Should be easy enough to reverse engineer and embed, but again if I can find a library and use wholesale all the better. Fonts open a bit of a can of worms. We've minimal pixels / restricted real-estate. All the layout math assumes proportional fonts - they're all fixed tile sizes. Again a good library would sort this I'm sure. I have another project in the repo that uses RGB panels as the display. It has LMS monitoring, includes visualization, VU and spectra, weather, even public transport services, and a rather cool clock face if I say so myself. You can specify fonts so it supports language specifics and Unicode,the graphics use SVG so they too can be modified, some of it is code generated though... So anything can be done, with compliant hardware, feature rich open source offerings, and of course time. As of 2020/09/15 *Total Tracks: 152,720 Total Albums: 14,085 Total Artists: 19,859 Total Genres: 712 Total Playing Time: 24428:46:00* ------------------------------------------------------------------------ shunte88's Profile: http://forums.slimdevices.com/member.php?userid=40185 View this thread: http://forums.slimdevices.com/showthread.php?t=111790 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
