Hi!
To my understanding gint has its own font system and text rendering, completely bypassing OS counterparts, with font data (the majority of which are raw glyphs) ending up in the add-in binary. My problem is cannot afford the binary size taken by glyphs, if I need to support Unicode characters other than ASCII alone, such as CJK, which comprises a huge amount of characters.
My first reaction is to use OS built-in glyphs, especially of 24px and 18px fonts, since they support most "multi-byte" characters, according to wiki. The question now is how?
Some of possible means could be:
- Call syscalls (GetMiniGlyphPtr(), PrintGlyph(), etc) to draw to VRAM. How well will gint get along with those syscalls?
- Call GetMiniGlyphPtr() then do pixel rendering. Still need a syscall. Need to know encodings of multi-byte character (looks like already knonw) and glyphs (should not be difficult if not known yet)
Moreover, if it's not possible or does not worth the effect, we can put the font file to flash. This seems feasible.
Or are there any other ways? If some of you have encountered this problem, what's your solution? Please advise! Also @Lephe, any thoughts?
To my understanding gint has its own font system and text rendering, completely bypassing OS counterparts, with font data (the majority of which are raw glyphs) ending up in the add-in binary. My problem is cannot afford the binary size taken by glyphs, if I need to support Unicode characters other than ASCII alone, such as CJK, which comprises a huge amount of characters.
My first reaction is to use OS built-in glyphs, especially of 24px and 18px fonts, since they support most "multi-byte" characters, according to wiki. The question now is how?
Some of possible means could be:
- Call syscalls (GetMiniGlyphPtr(), PrintGlyph(), etc) to draw to VRAM. How well will gint get along with those syscalls?
- Call GetMiniGlyphPtr() then do pixel rendering. Still need a syscall. Need to know encodings of multi-byte character (looks like already knonw) and glyphs (should not be difficult if not known yet)
Moreover, if it's not possible or does not worth the effect, we can put the font file to flash. This seems feasible.
Or are there any other ways? If some of you have encountered this problem, what's your solution? Please advise! Also @Lephe, any thoughts?