fix: set fontLigatures to false fixer #2267

This commit is contained in:
huzibaca 2024-12-04 00:28:33 +08:00
parent c71e18e97e
commit 6197249377
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

@ -106,7 +106,7 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
}; };
const editorDidMount = async ( const editorDidMount = async (
editor: monaco.editor.IStandaloneCodeEditor editor: monaco.editor.IStandaloneCodeEditor,
) => { ) => {
editorRef.current = editor; editorRef.current = editor;
@ -203,7 +203,7 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
fontFamily: `Fira Code, JetBrains Mono, Roboto Mono, "Source Code Pro", Consolas, Menlo, Monaco, monospace, "Courier New", "Apple Color Emoji"${ fontFamily: `Fira Code, JetBrains Mono, Roboto Mono, "Source Code Pro", Consolas, Menlo, Monaco, monospace, "Courier New", "Apple Color Emoji"${
getSystem() === "windows" ? ", twemoji mozilla" : "" getSystem() === "windows" ? ", twemoji mozilla" : ""
}`, }`,
fontLigatures: true, // 连字符 fontLigatures: false, // 连字符
smoothScrolling: true, // 平滑滚动 smoothScrolling: true, // 平滑滚动
}} }}
editorWillMount={editorWillMount} editorWillMount={editorWillMount}