Skip to content

Commit

Permalink
owpythonscript: Set DejaVu Sans Mono font on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
irgolic committed Mar 16, 2021
1 parent 0cfad6c commit 0a24861
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Orange/widgets/data/owpythonscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,11 @@ def __init__(self):

# Styling

self.defaultFont = defaultFont = \
"Menlo" if sys.platform == "darwin" else "Courier"
self.defaultFont = defaultFont = (
'Menlo' if sys.platform == 'darwin' else
'Courier' if sys.platform in ['win32', 'cygwin'] else
'DejaVu Sans Mono'
)
self.defaultFontSize = defaultFontSize = 13

self.editorBox = gui.vBox(self, box=True, spacing=4)
Expand Down

0 comments on commit 0a24861

Please sign in to comment.