fix: 字体缺失
This commit is contained in:
1 parent
f5f915dc91
commit
fe9c565ad4
23 files changed
+144
-7
No files matched your search
@@ -33,7 +33,7 @@ const XTerm = forwardRef<XTermRef, React.HTMLAttributes<HTMLDivElement>>(
|
||||
}
|
||||
const terminal = new Terminal({
|
||||
allowTransparency: true,
|
||||
fontFamily: '"Fira Code", "Noto Serif SC", monospace' // 添加回退字体
|
||||
fontFamily: '"Fira Code", "Harmony", "Noto Serif SC", monospace'
|
||||
})
|
||||
terminalRef.current = terminal
|
||||
const fitAddon = new FitAddon()
|
||||
|
||||
Reference in new issue
Block a user