Skip to content

Commit e95bb44

Browse files
committed
RoundedM+よりも優先してSegoe UI, BIZ UDゴシックを代わりに使用する
1 parent 1e6c9af commit e95bb44

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

app/globals.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,28 @@ mycdark:
126126
127127
日本語フォントは正直なんでもいいが、
128128
あまり変なフォントが選ばれるとxtermやaceエディターの表示が崩れる可能性があるので、
129-
確実にフォントを統一するためにRoundedM+を指定することにした
129+
確実にフォントを統一するために本文と同じフォントを指定することにした
130130
以前NotoSansJPを指定していたが、xterm.jsで全角の()の幅がバグった
131+
BIZUDゴシックは全角の”’の幅がおかしいが、まあ使うことないやろ
131132
*/
132133
--font-mono:
133-
"Inconsolata Variable", "Rounded M+ 1c", "Rounded M+ 1p",
134+
"Inconsolata Variable", "BIZ UDゴシック", "Rounded M+ 1c", "Rounded M+ 1p",
134135
"M PLUS Rounded 1c", monospace;
135136
/*
136137
本家のフォント名は Rounded M+ 1c 、または1pでもいいかも
137138
layout.tsxでインポートしているwebフォントが M PLUS Rounded 1c
138-
139139
それ以下はM+をダウンロードするまでの間表示されるswap用フォールバックとしてM+に見た目が近いものを指定。
140+
141+
ただしWindowsではウェブフォントのM+Roundedを使うとアンチエイリアスが効かず見栄えが悪いため、
142+
M+よりも優先してSegoe UI, BIZ UDゴシックを代わりに使用する
143+
140144
Hiragino Maru Gothic は見た目はめっちゃきれいなんだけど太字がない :cry:
141-
Meiryo は日本語の形がM+に近いが、英数がダメ
142145
*/
143146
--font-sans:
144-
"Rounded M+ 1c", "Rounded M+ 1p", "M PLUS Rounded 1c",
145-
/* 以下fallback */ "M+ 1c", "MigMix 1c", "Migu 1c",
147+
"Segoe UI", "BIZ UDゴシック", "Rounded M+ 1c", "Rounded M+ 1p",
148+
"M PLUS Rounded 1c", /* 以下fallback */ "M+ 1c", "MigMix 1c", "Migu 1c",
146149
"Hiragino Maru Gothic ProN", "Noto Sans", "Arial", "Liberation Sans",
147-
"Meiryo", sans-serif,
150+
sans-serif,
148151
/* TailwindCSSでデフォルトで指定されていた絵文字フォントは一応残しておく */
149152
"Apple Color Emoji",
150153
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

app/terminal/terminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function useTerminal(props: TerminalProps) {
134134
lineHeight: 1.2,
135135
letterSpacing: 0,
136136
fontFamily:
137-
"'Inconsolata Variable', 'Rounded M+ 1c', 'Rounded M+ 1p', 'M PLUS Rounded 1c', monospace",
137+
"'Inconsolata Variable', 'BIZ UDゴシック', 'Rounded M+ 1c', 'Rounded M+ 1p', 'M PLUS Rounded 1c', monospace",
138138
theme: computeTerminalTheme(),
139139
});
140140
terminalInstanceRef.current = term;

0 commit comments

Comments
 (0)