felixbuenemann / xlsxtream

Streaming & Fast XLSX Spreadsheet Writer for Ruby
MIT License
216 stars 38 forks source link

Support customizing font name, size, family #17

Closed felixbuenemann closed 7 years ago

felixbuenemann commented 7 years ago

This adds support for overriding the default font settings for the whole workbook.

The default settings are:

{ font: { name: 'Calibri', size: 12, family: 'Swiss' } }

Example with Arial 10pt:

Xlsxtream::Workbook.new('foo.xlsx', font: { name: 'Arial', size: 10 })

Resolves #15