My question is similar to this ( Displaying japanese instead of chinese in a textview ), but a little bit different. The proposed solution is embedding a Japanese font in the app.
But I would not like to embed a Japanese font in the app, because it will increase the app size and I would have to buy an expensive font licence. It seems the Android emulator (Android 8.1) already has a Japanese font. How to use it, instead of embedding a font?
I mean, when I changed the system language to Japanese, it was like this:
But when the system language is English, it was like this (notice the third and fourth letters):
In case if you are wondering why I want to display them in Japanese style, I want to make a Japanese learning app, so it must display Japanese-style Chinese letters no matter what the system language is.
从API 17开始,您可以使用TextView.setTextLocale
kanji.setTextLocale(Locale.JAPAN);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.