def _set_font(self, font):
        """ Sets the base font for the ConsoleWidget to the specified QFont.
        """
        self._control.setTabStopWidth(
            self.tab_width * self._get_font_width(font)
        )

        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.
        
angrmanagement/vendor/qtconsole/console_widget.py