else:
line = self.font.render(line, True, self.colour)
line_rect = line.get_rect()
width = max(width, line.get_rect().width)
height += line.get_rect().height
else:
line = self.font.render(line, True, self.colour)
line_rect = line.get_rect()
width = max(width, line.get_rect().width)
height += line.get_rect().height