Reputation: 1168
For a multi-lingual application on an embedded device I need a CJK font (or one korean and one chinese font) that do not exceed 1mb. I found this to be an almost impossible task, as Chinese fonts have around 5mb and Korean fonts around 4mb.
I have already looked into font subsetting, which proves to be hard in my case, as I need to translate the whole application with about 3500 (english) words and there is no way to manually pick the chinese/korean characters I actually need. Also, no subsetting tool I looked into supported CJK languages.
I now am thinking that there must be other people out there who are dealing with the same problem. Is there a solution for this problem?
Upvotes: 1
Views: 908
Reputation: 1
I now am thinking that there must be other people out there who are dealing with the same problem. Is there a solution for this problem?
These might be writing software with Chinese or Korean documentation, so searching in these language could yield more results.
A possible take on this would be using smaller bitmap fonts like Unifont, and upscale them x2 using a method such as this one to upscale it.
Another take would be to compress bitmap fonts block by block, using something like GZIP (high compression) or LZ4 (fast decompression), and have an index. When needing some character, lookup which block it is in from the index, decompress that (small) block in RAM, and get the character data from it.
An alternative is to considering displays as a canvas of bits instead of a grid of text: instead of transferring text message to the embedded system, a more capable system would render the text and transfer the compressed bitmap for the whole display. A bit like a low-end VNC.
Upvotes: 0
Reputation: 5002
You might be interested in this project : https://poppyworks.itch.io/silver
It's for pixel arts games though, this ttf only takes around 3MB for CJKs.
Upvotes: 0