table/cell_text.rb
Text cells accept the following options: align, font, font_style, inline_format, kerning,
leading, min_font_size, overflow, rotate, rotate_around, single_line, size,
text_color, and valign.
Most of these style options are direct translations from the text methods styling options.
data = [ ["Look at how the cells will look when styled", "", ""],
["They probably won't look the same", "", ""]
]
table data, :cell_style => { :font => "Times-Roman", :font_style => :italic }
move_down 20
table data, :cell_style => { :size => 18, :text_color => "346842" }
move_down 20
table [["Just <font size='18'>some</font> <b><i>inline</i></b>", "", ""],
["<color rgb='FF00FF'>styles</color> being applied here", "", ""]],
:cell_style => { :inline_format => true }
move_down 20
table [["1", "2", "3", "rotate"]], :cell_style => { :rotate => 30 }
move_down 20
table data, :cell_style => { :overflow => :shrink_to_fit, :min_font_size => 8,
:width => 60, :height => 30 }
Look at how the cells will look when styled
They probably won't look the same
Look at how the cells will look when styled
They probably won't look the same
Just some inline
styles being applied here
1
2
3
rotate
Look at how
the cells will
They probably
won't look the