mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-04 16:47:33 +08:00
fix: set fontLigatures to false fixer #2267
This commit is contained in:
parent
c71e18e97e
commit
6197249377
@ -106,7 +106,7 @@ export const EditorViewer = <T extends Language>(props: Props<T>) => {
|
||||
};
|
||||
|
||||
const editorDidMount = async (
|
||||
editor: monaco.editor.IStandaloneCodeEditor
|
||||
editor: monaco.editor.IStandaloneCodeEditor,
|
||||
) => {
|
||||
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"${
|
||||
getSystem() === "windows" ? ", twemoji mozilla" : ""
|
||||
}`,
|
||||
fontLigatures: true, // 连字符
|
||||
fontLigatures: false, // 连字符
|
||||
smoothScrolling: true, // 平滑滚动
|
||||
}}
|
||||
editorWillMount={editorWillMount}
|
||||
|
Loading…
x
Reference in New Issue
Block a user