Repository navigation
fix: put the Japanese font first while the interface is in Japanese - #97
Merged
Merged
Conversation
Chrome drew some characters, such as 方 and 生 in the first stage's goal, with a system font instead of Noto Sans JP. A font split into unicode ranges is missed for some characters when the fonts before it lack them; with Noto Sans JP first, every character comes from it. Latin letters in the Japanese interface now use Noto Sans JP's own, and the English interface is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both orders are built from the same two lists, and the comment names the actual trigger: an installed font before the split one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee with
|
| Latest commit: |
35ba0f6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8edd0f94.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
| Branch Preview URL: | https://fix-japanese-font-order.create-cpu-c8345196-9409-4cce-afc4-389f413ad8ee.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
In the Japanese interface, Chrome drew some characters with a system font (Yu Gothic UI on Windows) instead of Noto Sans JP, so they looked out of place. In the first tutorial stage's goal these were 方 in 両方, 生 in 再生, 下 in 右下, and the 」 after 部品.
@fontsource/noto-sans-jp/400.cssshows the same characters missing with the current order, and none with Noto Sans JP first. The variable font package (@fontsource-variable/noto-sans-jp) breaks the same way, so the package is kept.<html lang="ja">, the stack puts the Japanese fonts first. The Latin and Japanese font lists are each defined once, and both orders are built from them.Testing
npx vitest run(173 tests) andnpx biome check srcpass.🤖 Generated with Claude Code