def METHOD_NAME(self):
    """
    returns:
            type: QFont
    """
    font = QtGui.QFont(
        self.family,
        italic=self.italic,
        weight=QtGui.QFont.Bold if self.bold else QtGui.QFont.Normal
    )
    font.setPixelSize(min(self.max_size, self.size))
    return font