Set Default Font while rendering spreadsheet to HTML

Set Default Font while rendering spreadsheet to HTML

The following sample code creates a workbook, adds some text to cell B4 of the first worksheet, and sets its font to an unknown/non‑existing font. Then it saves the workbook in HTML by setting different default font names such as Courier New, Arial, Times New Roman, etc.

The screenshot shows the effect of setting different default font names via the HtmlSaveOptions.default_font_name property.

todo:image_alt_text

The code generates the output HTML file with Courier New, the output HTML with Arial, and the output HTML file with Times New Roman.

Sample Code