From 6197249377a3976c1b86ca1a031391010f2fe6b3 Mon Sep 17 00:00:00 2001 From: huzibaca Date: Wed, 4 Dec 2024 00:28:33 +0800 Subject: [PATCH] fix: set fontLigatures to false fixer #2267 --- src/components/profile/editor-viewer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/profile/editor-viewer.tsx b/src/components/profile/editor-viewer.tsx index e1ccd0b8..4554d705 100644 --- a/src/components/profile/editor-viewer.tsx +++ b/src/components/profile/editor-viewer.tsx @@ -106,7 +106,7 @@ export const EditorViewer = (props: Props) => { }; const editorDidMount = async ( - editor: monaco.editor.IStandaloneCodeEditor + editor: monaco.editor.IStandaloneCodeEditor, ) => { editorRef.current = editor; @@ -203,7 +203,7 @@ export const EditorViewer = (props: Props) => { fontFamily: `Fira Code, JetBrains Mono, Roboto Mono, "Source Code Pro", Consolas, Menlo, Monaco, monospace, "Courier New", "Apple Color Emoji"${ getSystem() === "windows" ? ", twemoji mozilla" : "" }`, - fontLigatures: true, // 连字符 + fontLigatures: false, // 连字符 smoothScrolling: true, // 平滑滚动 }} editorWillMount={editorWillMount}