def add_format(self, properties={}):
        format_properties = self.default_format_properties.copy()

        if self.excel2003_style:
            format_properties = {'font_name': 'Arial', 'font_size': 10,
                                 'theme': 1 * -1}

        format_properties.update(properties)

        xf_format = Format(format_properties,
                           self.xf_format_indices,
                           self.dxf_format_indices)

        # Store the format reference.
        self.formats.append(xf_format)

        return xf_format
Add a new Format to the Excel Workbook.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/workbook.py/Workbook.add_format