Skip to content

Commit e338de0

Browse files
committed
フォントのフォールバックをめっちゃ指定した
1 parent 0a1e582 commit e338de0

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

app/globals.css

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,25 @@ mycdark:
102102
あまり変なフォントが選ばれるとターミナルやコードエディターの表示が崩れる可能性があるので適当に指定している
103103
*/
104104
--font-mono:
105-
/*"Inconsolata",*/
106-
"Inconsolata Variable", "Noto Sans JP", "Noto Sans CJK JP",
105+
"Inconsolata Variable",
106+
/* TailwindCSSデフォルトの欧文フォント */ "SFMono-Regular", "Menlo",
107+
"Monaco", "Consolas", "Liberation Mono", "Courier New",
108+
/* 日本語用にNotoSans */ "Noto Sans JP", "Noto Sans CJK JP",
107109
"Source Han Sans JP", "源ノ角ゴシック", "Noto Sans JP Variable", monospace;
108110
/*
111+
本家のフォント名は Rounded M+ 1c 、または1pでもいいかも
112+
layout.tsxでインポートしているwebフォントが M PLUS Rounded 1c
113+
114+
それ以下はM+をダウンロードするまでの間表示されるswap用フォールバックとしてM+に見た目が近いものを指定。
115+
Hiragino Maru Gothic は見た目はめっちゃきれいなんだけど太字がない :cry:
116+
Meiryo は日本語の形がM+に近いが、英数がダメ
109117
*/
110118
--font-sans:
111-
"M PLUS Rounded 1c", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
112-
"Segoe UI Symbol", "Noto Color Emoji";
119+
"Rounded M+ 1c", "Rounded M+ 1p", "M PLUS Rounded 1c",
120+
/* 以下fallback */ "M+ 1c", "MigMix 1c", "Migu 1c",
121+
"Hiragino Maru Gothic ProN", "Noto Sans", "Arial", "Liberation Sans",
122+
"Meiryo", sans-serif,
123+
/* TailwindCSSでデフォルトで指定されていた絵文字フォントは一応残しておく */
124+
"Apple Color Emoji",
125+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
113126
}

0 commit comments

Comments
 (0)