UPDATE: I've completely changed the question because in reality, I'm having a really hard time properly using device-fonts for multiple languages displayed in the same app (at the same time).
I must use device-fonts (cannot use the .embedFonts = true
property) and I won't be masking, scaling or rotating or animating the text anyways. I'm not worried about the disappearing issues side-effects. I'm noticing that English characters are showing up correctly, BUT other characters aren't...
Like the following encoded characters for example:
सकत
Instead, the above characters show up as hollow squares.
Is there something I need to use / be aware of? I've looked into these:
- System.useCodePage;
- TextField.defaultTextFormat;
- TextField.setTextFormat(...);
- TextFormat object;
- StyleSheet object;
- Font.enumerateFonts(true);
What I'm trying to do is display single words (or short sentences) from various sources and various languages. In other words.... many TextFields will be scattered near eachother, but each TextField will use one language independant from the other Textfields. One may be in Mandarin, another in Spanish, another in French, in English... etc.
What do I need to do to get the Font "_sans" (or any supported device fonts) to show up correctly in various languages?