In the post 'picture rendering', Anubirux had posted about adding Unicode and multiple languages support. I'm replying to it here, as it pertains to text rendering.
The point is, our text rendering system currently in use won't be exactly ready for that kind of a thing. It currently is just like drawing a bitmap on screen, except the fact that the bitmap is monochrome and compressed to 1 bit per pixel. Doing unicode stuff requires a lot of information to store and draw the char. E.g. in Hindi, my mother tongue, when drawing two characters, one character is drawn on top of the previous char! Similarly with accent on characters, e.g. café, and so on
Of course the Chinese have developed some sort of workaround. In one project of theirs using graphic LCD and STM32, I saw that they used a SST25V016 chip on board and copied their char table from SD card onto it on the first run. They call it 'HzLib'.
Also, one more thing that our code doesn't support now is font size scaling. This means that font size in pixels is fixed at font generation time. If you need a bigger font, you have to generate it separately and it'll take up more flashspace (each font currently uses about 1.5-2 Kbyte and that too for only 96 glyphs! Imagine the size if I support, say, just some odd 30000 glyphs for unicode). Would be great if I define a single font and can render it in various sizes, bold, italic, etc.
Anti-aliasing for graphics and text sounds a little far-fetched idea right now, but I guess we could at least give it a shot someday. Will certainly look good and be the first of its kind in an open-source embedded graphics library offering. I would like to invite developers who have had experience with 2D computer graphics. Maybe you could help us enrich our library.
I stumbled upon libfreetype, Link:
http://www.freetype.org/ for a solution. But have no idea if it is usable and practical on an STM32. Even if somehow the code compiles, what space it would take up and what would be the speed is something questionable. What does the community have to say?
I guess we stick to basic ASCII support for now (96 chars for now, If required, maybe extend upto 256-byte table), until we find or code something better.
Abhishek