Swap macOS/iOS fonts to JIS2004 standard #300
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On Darwin-based platforms like macOS, iPhoneOS, and iPadOS, Kanji aren't rendered correctly due to adhering to an older standard than is generally accepted. The JIS2004 standard is the most recent update to Kanji writing, and is reflected in the writing samples from sites like Jisho. Apple developed a standard on their platforms that JIS2004-compliant fonts have an "N" suffix on them. So simply adding "N" to the existing Darwin-specific font options resolves the issue.
Here's an example of the difference in the two in macOS:
Additional notes on JIS2004 can be found here: https://en.wikipedia.org/wiki/JIS_X_0213. And the topic is discussed in Dr. Ken Lunde's CJKV Input Processing.
This issue does not appear to be present in the same capacity on Windows. Though Kanji accuracy does appear to be dependent on whether or not the Japanese keyboard (and thus proper Japanese fonts) have been installed on the machine. Droid Sans Japanese also appears to be non-JIS2004 compliant. However, a fix for that is outside of the scope of this PR.