当系统语言为英文时,显示日文中文字母而不是中文样式的中文字母 [英] Display Japanese-style Chinese letters instead of Chinese-style Chinese letters when the system language is English
问题描述
我的问题与此类似(
但是,当系统语言为英语时,就是这样(注意第三个和第四个字母):
如果您想知道为什么我要以日式显示它们,我想制作一个日文学习应用程序,因此它必须显示日式中文字母no不管系统语言是什么。
自API 17开始,您可以使用 TextView.setTextLocale
kanji.setTextLocale(Locale.JAPAN);
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.
Since API 17 you can use TextView.setTextLocale
kanji.setTextLocale(Locale.JAPAN);
这篇关于当系统语言为英文时,显示日文中文字母而不是中文样式的中文字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!