Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use Monospace as default font on Linux

  • Loading branch information...
commit 7b0ff88b345e35c0bdbd60f589698502fc20fbcc 1 parent 4b4abf9
@minrk authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 IPython/frontend/qt/console/console_widget.py
View
9 IPython/frontend/qt/console/console_widget.py
@@ -93,7 +93,7 @@ class ConsoleWidget(Configurable, QtGui.QWidget):
help="""The font family to use for the console.
On OSX this defaults to Monaco, on Windows the default is
Consolas with fallback of Courier, and on other platforms
- the default is Inconsolata with fallback of Monospace
+ the default is Monospace.
""")
def _font_family_default(self):
if sys.platform == 'win32':
@@ -103,8 +103,8 @@ def _font_family_default(self):
# OSX always has Monaco, no need for a fallback
return 'Monaco'
else:
- # A popular free mono font, will fallback to Monospace
- return 'Anonymous Pro'
+ # Monospace should always exist, no need for a fallback
+ return 'Monospace'
font_size = Int(config=True,
help="""The font size. If unconfigured, Qt will be entrusted
@@ -614,8 +614,7 @@ def reset_font(self):
# OSX always has Monaco
fallback = 'Monaco'
else:
- # FIXME: remove Consolas as a default on Linux once our font
- # selections are configurable by the user.
+ # Monospace should always exist
fallback = 'Monospace'
font = get_font(self.font_family, fallback)
if self.font_size:
Please sign in to comment.
Something went wrong with that request. Please try again.