From b77bc750a0bef05f3b46e8a3446aad47a065d3c7 2011-06-20 23:40:12
From: MinRK <benjaminrk@gmail.com>
Date: 2011-06-20 23:40:12
Subject: [PATCH] use Monospace as default font on Linux

---

diff --git a/IPython/frontend/qt/console/console_widget.py b/IPython/frontend/qt/console/console_widget.py
index 2dd34cc..c43e6bb 100644
--- a/IPython/frontend/qt/console/console_widget.py
+++ b/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 @@ class ConsoleWidget(Configurable, QtGui.QWidget):
             # 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
@@ -624,8 +624,7 @@ class ConsoleWidget(Configurable, QtGui.QWidget):
             # 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: