(self, font)
Set font and update tab stop width
Set font and update tab stop width
Set font and update tab stop width
def setFont(self, font):
        """Set font and update tab stop width
        """
        self._fontBackup = font
        QPlainTextEdit.setFont(self, font)
        self._updateTabStopWidth()

        # text on line numbers may overlap, if font is bigger, than code font
        # Note: the line numbers margin recalculates its width and if it has
        #       been changed then it calls updateViewport() which in turn will
        #       update the solid edge line geometry. So there is no need of an
        #       explicit call self._setSolidEdgeGeometry() here.
        lineNumbersMargin = self._line_number_margin
        if lineNumbersMargin:
            lineNumbersMargin.setFont(font)
def setFont ( self , font ) : self . _fontBackup = font QPlainTextEdit . setFont ( self , font ) self . _updateTabStopWidth ( ) # text on line numbers may overlap, if font is bigger, than code font # Note: the line numbers margin recalculates its width and if it has #       been changed then it calls updateViewport() which in turn will #       update the solid edge line geometry. So there is no need of an #       explicit call self._setSolidEdgeGeometry() here. lineNumbersMargin = self . _line_number_margin if lineNumbersMargin : lineNumbersMargin . setFont ( font )