0

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: enter image description here

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

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.

Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135

1 Answers1

1

Since API 17 you can use TextView.setTextLocale

kanji.setTextLocale(Locale.JAPAN);
Zharf
  • 2,638
  • 25
  • 26