How can I detect system Chinese, Korean, and English fonts without embedding one for each? (AIR for mobile on Android and IOS)

My educational application requires displaying Korean, English, and Chinese. One solution is to embed the Korean / English font and Chinese font. Then connect the string with different TextFormats.

The fact is, I’m sure that iOS and Android devices should contain native Chinese, Korean and English fonts, and I would rather mention and use these fonts instead of packing them.

I tried to detect fonts using Font.enumerateFonts(true), but when I use font.hasGlyphs('你'), I don’t get either one or anything, so I don’t know how to choose the correct font for the device.

If this does not work, is there a font containing all of these characters? Or maybe a font program that lets me customize the font to include

+4
source share
1 answer

That was what I once wrote http://blogs.adobe.com/airodynamics/2012/08/21/supporting-languages-with-unicode-characters/ Hope this helps you

You can always find out the name of a font that is specific to a language. Maybe this is http://support.apple.com/kb/HT5878 .

Now, based on the language you want to show, just change the font value in format.font format and the correct language should appear.

+5

Source: https://habr.com/ru/post/1538745/


All Articles