mirror of https://github.com/garrytan/gstack.git
Merge 3cffb782c2 into 2be6c06ba8
This commit is contained in:
commit
d8dd688b89
|
|
@ -391,7 +391,13 @@
|
||||||
function ensureXterm() {
|
function ensureXterm() {
|
||||||
if (term) return;
|
if (term) return;
|
||||||
term = new Terminal({
|
term = new Terminal({
|
||||||
fontFamily: '"JetBrains Mono", "SF Mono", Menlo, "Noto Sans Mono CJK KR", "Malgun Gothic", monospace',
|
// Windows Latin monospace (Consolas, always present; Cascadia ships with Terminal/VS)
|
||||||
|
// MUST precede the CJK fallbacks: xterm sizes the character cell from the first
|
||||||
|
// resolved font's advance width, and Malgun Gothic (the Windows Korean UI font, the
|
||||||
|
// first that resolves here when the Mac/Linux fonts are absent) advances Latin glyphs
|
||||||
|
// in a full-width CJK cell — doubling every cell into spaced-out text. The CJK fonts
|
||||||
|
// stay last for actual CJK glyph coverage.
|
||||||
|
fontFamily: '"JetBrains Mono", "SF Mono", "Cascadia Mono", "Cascadia Code", Consolas, Menlo, "DejaVu Sans Mono", "Noto Sans Mono CJK KR", "Malgun Gothic", monospace',
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
theme: { background: '#0a0a0a', foreground: '#e5e5e5' },
|
theme: { background: '#0a0a0a', foreground: '#e5e5e5' },
|
||||||
cursorBlink: true,
|
cursorBlink: true,
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,9 @@
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
--font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
--font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
||||||
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', 'Noto Sans Mono CJK KR', 'Malgun Gothic', monospace;
|
/* Consolas (always on Windows) before the CJK fallbacks — else Latin text resolves to
|
||||||
|
Malgun Gothic and renders full-width/spaced-out. Same fix as the xterm fontFamily. */
|
||||||
|
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Mono', 'Cascadia Code', Consolas, 'DejaVu Sans Mono', 'Noto Sans Mono CJK KR', 'Malgun Gothic', monospace;
|
||||||
|
|
||||||
/* Radius */
|
/* Radius */
|
||||||
--radius-sm: 4px;
|
--radius-sm: 4px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue