README.md in caracal-0.3.0 vs README.md in caracal-1.0.0
- old
+ new
@@ -365,20 +365,21 @@
color '333333' # sets the font color.
size 32 # sets the font size. units in 1/2 points.
bold true # sets whether or not to render the text with a bold weight.
italic false # sets whether or not render the text in italic style.
underline false # sets whether or not to underline the text.
+ bgcolor 'cccccc' # sets the background color.
end
```
More complex paragraph runs can be accomplished by using the `text` method instead the paragraph's block.
```ruby
docx.p do
text 'Here is a sentence with a '
link 'link', 'https://www.example.com'
- text ' to something awesome', font: 'Courier New', color: '555555', size: 32, bold: true, italic: true, underline: true
+ text ' to something awesome', font: 'Courier New', color: '555555', size: 32, bold: true, italic: true, underline: true, bgcolor: 'cccccc'
text '.'
br
text 'This text follows a line break.'
end
```
@@ -397,9 +398,10 @@
color '0000ff' # sets the color of the text. defaults to 1155cc.
size 24 # sets the font size. units in half-points. defaults to nil.
bold false # sets whether or not the text will be bold. defaults to false.
italic false # sets whether or not the text will be italic. defaults to false.
underline true # sets whether or not the text will be underlined. defaults to true.
+ bgcolor 'cccccc' # sets the background color.
end
end
```