def get_format(**kwargs):
    """
    Returns a `QTextCharFormat <http://doc.qt.nokia.com/qtextcharformat.html>`_ format.

    :param \*\*kwargs: Format settings.
    :type \*\*kwargs: dict
    :return: Format.
    :rtype: QTextCharFormat
    """

    settings = foundations.data_structures.Structure(**{"format": QTextCharFormat(),
                                                        "background_color": None,
                                                        "color": None,
                                                        "font_weight": None,
                                                        "font_point_size": None,
                                                        "italic": False})
    settings.update(kwargs)

    format = QTextCharFormat(settings.format)

    settings.background_color and format.setBackground(settings.background_color)
    settings.color and format.setForeground(settings.color)
    settings.font_weight and format.setFontWeight(settings.font_weight)
    settings.font_point_size and format.setFontPointSize(settings.font_point_size)
    settings.italic and format.setFontItalic(True)

    return format