Skip to content

Commit 0266770

Browse files
authored
Merge pull request #726 from asmsuechan/fix-default-font-on-windows
iss #155 Change defaut font on windows_
2 parents 2d6f7c0 + 820802c commit 0266770

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import _ from 'lodash'
22

33
const OSX = global.process.platform === 'darwin'
4+
const win = global.process.platform === 'win32'
45
const electron = require('electron')
56
const { ipcRenderer } = electron
67
const consts = require('browser/lib/consts')
@@ -28,14 +29,14 @@ export const DEFAULT_CONFIG = {
2829
theme: 'base16-light',
2930
keyMap: 'sublime',
3031
fontSize: '14',
31-
fontFamily: 'Monaco, Consolas',
32+
fontFamily: win ? 'Segoe UI' : 'Monaco, Consolas',
3233
indentType: 'space',
3334
indentSize: '2',
3435
switchPreview: 'BLUR' // Available value: RIGHTCLICK, BLUR
3536
},
3637
preview: {
3738
fontSize: '14',
38-
fontFamily: 'Lato',
39+
fontFamily: win ? 'Segoe UI' : 'Lato',
3940
codeBlockTheme: 'dracula',
4041
lineNumber: true
4142
}

0 commit comments

Comments
 (0)