Skip to content

Commit

Permalink
[ci skip] Add README example for custom font
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbuenemann committed Oct 30, 2017
1 parent 18495c0 commit 8a135f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ end
xlsx.close
# Close IO object
io.close

# Changing the default font from Calibri, 12pt, Swiss
Xlsxtream::Workbook.new(io, :font => {
:name => 'Times New Roman',
:size => 10, # size in pt
:family => 'Roman' # Swiss, Modern, Script, Decorative
})

```

## Development
Expand Down

0 comments on commit 8a135f2

Please sign in to comment.