Skip to content

Use `Locale.JAPAN` on Japanese text to fix font

V360 requested to merge V360/nani-app:fix-font-choice into master

For this patch, I went through and found TextAreas and buttons that always have Japanese text, and put .setTextLocale(Locale.JAPAN) onto them. This has the effect of changing the font Android uses to render them.

For example (pictured below), if you open the page for 新しい, you'll see that the radical in the bottom left looks like "ホ", rather than "木".

The fonts picked by Android to draw kanji were incorrect because of the https://en.wikipedia.org/wiki/Han_unification . Android and most other platforms default to using Chinese fonts for this block of characters, unless told otherwise by lang="ja" or an equivalent.


Some screenshots of how things changed:

Old New
old1 new1
old2 new2
old3 new3

Merge request reports