Skip to content

Commit 714cf43

Browse files
committed
set Basefont
1 parent 5df0755 commit 714cf43

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

browser/components/CodeEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export default class CodeEditor extends React.Component {
152152
className={this.props.className == null ? 'CodeEditor' : 'CodeEditor ' + this.props.className}
153153
style={{
154154
fontSize: this.state.fontSize,
155-
fontFamily: this.state.fontFamily
155+
fontFamily: this.state.fontFamily.trim() + ', monospace'
156156
}}
157157
/>
158158
)

browser/components/MarkdownPreview.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ export default class MarkdownPreview extends React.Component {
183183
onMouseMove={e => this.handleMouseMove(e)}
184184
onMouseUp={e => this.handleMouseUp(e)}
185185
dangerouslySetInnerHTML={{__html: ' ' + content}}
186-
style={{fontSize: this.state.fontSize, fontFamily: this.state.fontFamily}}
186+
style={{
187+
fontSize: this.state.fontSize,
188+
fontFamily: this.state.fontFamily.trim() + ', helvetica, arial, sans-serif'
189+
}}
187190
/>
188191
)
189192
}

lib/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const nodeIpc = require('@rokt33r/node-ipc')
66

77
const defaultConfig = {
88
'editor-font-size': '14',
9-
'editor-font-family': 'Monaco, Ubuntu Mono, Consolas, source-code-pro, monospace',
9+
'editor-font-family': 'Monaco, Consolas',
1010
'editor-indent-type': 'space',
1111
'editor-indent-size': '4',
1212
'preview-font-size': '14',
13-
'preview-font-family': 'Lato, helvetica, arial, sans-serif',
13+
'preview-font-family': 'Lato',
1414
'disable-direct-write': false
1515
}
1616
const configFile = 'config.json'

0 commit comments

Comments
 (0)