diff --git a/src/style.css b/src/style.css index 21b04c7..4c3f224 100644 --- a/src/style.css +++ b/src/style.css @@ -5,10 +5,9 @@ } :root { - /* MUI's default Latin fonts first, then Japanese */ - --font-family: - "Roboto", "Helvetica", "Arial", "Noto Sans JP", "Hiragino Sans", - "Yu Gothic UI", Meiryo, sans-serif; + --latin-fonts: "Roboto", "Helvetica", "Arial"; + --japanese-fonts: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", Meiryo; + --font-family: var(--latin-fonts), var(--japanese-fonts), sans-serif; font-family: var(--font-family); /* Keep in sync with the colors in style.ts */ @@ -25,6 +24,11 @@ --color-tutorial-background: #fff3e0; } +/* Chrome skips some characters of a split font placed after an installed one */ +:root:lang(ja) { + --font-family: var(--japanese-fonts), var(--latin-fonts), sans-serif; +} + :root, body, #root {