Sekai-World / sekai-viewer

Web Database Viewer of Project Sekai
https://sekai.best
GNU General Public License v3.0
323 stars 41 forks source link

[BUG] Font fallback makes the text display weird #427

Closed outloudvi closed 8 months ago

outloudvi commented 1 year ago

Describe the bug The string "特训前卡图" has "训" and "图" displayed in a different font from other characters.

To Reproduce

  1. Go to https://sekai.best/card/3.

Expected behavior Navigation tab text is displayed uniformly.

Screenshots image

Browser (please complete the following information):

Possible cause and/or solution The given font-family:

"Roboto", "Overpass", "Prompt", "Noto Sans JP", "Helvetica", "Arial", sans-serif

has only Noto Sans JP as a CJK font, which doesn't seem to include the character "训" and "图".

image

For the Chinese (Simplified) language, it would be better to use a font designed for Chinese (e.g. Noto Sans SC). This would also apply to other CJK languages (e.g., Japanese, Korean, Chinese Traditional).