public
Description: Fast, Nimble PDF Writer for Ruby
Homepage: http://prawn.majesticseacreature.com
Clone URL: git://github.com/sandal/prawn.git
Continuing to improve example [#28]
sandal (author)
Mon Jun 23 23:31:53 -0700 2008
commit  efd3994714f5ed4c27911181ccd7fc1771ea59c0
tree    39ac0e11a4edc2d571d13569af073201c555dea5
parent  76153d27b371c5136549ae71d65c30fd4a975a56
...
2
3
4
5
 
6
7
8
...
26
27
28
29
30
 
 
31
32
33
...
2
3
4
 
5
6
7
8
...
26
27
28
 
 
29
30
31
32
33
0
@@ -2,7 +2,7 @@ $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
0
 require "prawn"
0
 
0
 Prawn::Document.generate("table.pdf") do 
0
-  font "#{Prawn::BASEDIR}/data/fonts/comicsans.ttf"
0
+  font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf"
0
   table [["foo",    "baaar",             "1" ],
0
          ["This is","a sample",          "2" ],
0
          ["Table",  "dont\ncha\nknow?",  "3" ],
0
@@ -26,8 +26,8 @@ Prawn::Document.generate("table.pdf") do
0
          [ "It",    "Rules",             "4" ],     
0
          [ "It",    "Rules",             "4" ]],     
0
 
0
-    :font_size  => 14, 
0
-    :padding    => 7,
0
+    :font_size  => 18, 
0
+    :padding    => 3,
0
     :border     => 2,
0
     :position   => :center,
0
     :headers    => ["Column A","Column B","#"]

Comments