Set Default Font while Rendering a Spreadsheet to Images

Set Default Font while Rendering a Spreadsheet to Images

The following sample code creates a workbook, adds some text in cell A4 of the first worksheet, and sets its font to an invalid or non‑existent font. Then, it generates two images of the worksheet. The first image is created by setting the ImageOrPrintOptions.default_font property to Courier New, and the second image is created by setting the same property to Times New Roman.

This is the output image after setting the ImageOrPrintOptions.default_font property to Courier New.

todo:image_alt_text

This is the output image after setting the ImageOrPrintOptions.default_font property to Times New Roman.

todo:image_alt_text

Sample Code