Display Japanese-style Chinese letters instead of Chinese Chinese letters when the system language is English

My question is similar to this ( Displaying Japanese instead of Chinese in text form ), but slightly different. The proposed solution is to embed the Japanese font in the application.

But I would not want to embed the Japanese font in the application, because it will increase the size of the application, and I will have to buy expensive font licenses. 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: enter image description here

But when the system language is English, it was like this (note the third and fourth letters): enter image description here

If you are wondering why I want to display them in Japanese style, I want to make a Japanese training application, so it should display Chinese letters of Japanese style no matter what the system language is.

0
source share
1 answer

Starting with API 17 you can use TextView.setTextLocale

kanji.setTextLocale(Locale.JAPAN); 
+1
source

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


All Articles