xlsxwriter – 在评论中更改字体

是否有可能在xlsxwriter中更改注释格式 – write_comment()我想像“Courier New”那样有一个等宽的字体,我不知道该怎么做。 有什么build议么?

根据Working with Cell Comments文档段落, xlsxwriter不允许您更改注释中使用的默认字体。 您可以更改的唯一选项是:

 author visible x_scale width y_scale height color start_cell start_row start_col x_offset y_offset 

xlsxwriter问题跟踪器中创build了一个github问题,被xlsxwriter标记为“function请求”:

  • 更改单元格注释中的字体