fix: 字体缺失
This commit is contained in:
1 parent
c38cbf657a
commit
124940f9a8
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