environment/lib/python2.7/site-packages/IPython/frontend/qt/console/console_widget.py
def _set_font(self, font):
        """ Sets the base font for the ConsoleWidget to the specified QFont.
        """
        font_metrics = QtGui.QFontMetrics(font)
        self._control.setTabStopWidth(self.tab_width * font_metrics.width(' '))

        self._completion_widget.setFont(font)
        self._control.document().setDefaultFont(font)
        if self._page_control:
            self._page_control.document().setDefaultFont(font)

        self.font_changed.emit(font)
def _set_font(self, font):
        font_metrics = QtGui.QFontMetrics(font)
        self._control.setTabStopWidth(self.tab_width * font_metrics.width(' '))

        self._completion_widget.setFont(font)
        self._control.document().setDefaultFont(font)
        if self._page_control:
            self._page_control.document().setDefaultFont(font)

        self.font_changed.emit(font)
def _set_font ( self , font ) : font_metrics = QtGui . QFontMetrics ( font ) self . _control . setTabStopWidth ( self . tab_width * font_metrics . width ( ' ' ) ) self . _completion_widget . setFont ( font ) self . _control . document ( ) . setDefaultFont ( font ) if self . _page_control : self . _page_control . document ( ) . setDefaultFont ( font ) self . font_changed . emit ( font )
Sets the base font for the ConsoleWidget to the specified QFont.
Sets the base font for the ConsoleWidget to the specified QFont .