2020-09-15 05:58 AM
I need to generate font binaries for all characters, because the device accepts external inputs which is unknown at compile time and can use any characters, including chinese and japanese.
TouchGFX seems to generate font files only for characters that I use in software at compile time? Is this correct?
How can I generate full font files? Thank you!
Solved! Go to Solution.
2020-09-15 01:49 PM
TouchGFX will generate what you tell it to. If you only use static texts, then yes, that's what you'll get. But if you define wildcard-ranges to cover the entire unicode range of your font, then you will have those glyphs as well.
For chinese and japanese you'd end up with a large number of glyphs, so here you have the option of using "binary fonts" and "font caching" if you are strained on resources. You can put a binary font on an SD-card and cache the glyphs you need for each view, for instance.
/Martin
2020-09-15 01:49 PM
TouchGFX will generate what you tell it to. If you only use static texts, then yes, that's what you'll get. But if you define wildcard-ranges to cover the entire unicode range of your font, then you will have those glyphs as well.
For chinese and japanese you'd end up with a large number of glyphs, so here you have the option of using "binary fonts" and "font caching" if you are strained on resources. You can put a binary font on an SD-card and cache the glyphs you need for each view, for instance.
/Martin