Skip to content

Commit

Permalink
Some tweaking to font example
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed May 30, 2008
1 parent fbde729 commit 22ddabc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added data/fonts/Chalkboard.ttf
Binary file not shown.
File renamed without changes.
4 changes: 3 additions & 1 deletion examples/simple_text_ttf.rb
Expand Up @@ -3,6 +3,8 @@

Prawn::Document.generate "hello.pdf" do
fill_color "0000ff"
font "comicsans.ttf", :ttf
font "#{Prawn::BASEDIR}/data/fonts/comicsans.ttf", :ttf
text "Hello World", :at => [200,720], :size => 32
font "#{Prawn::BASEDIR}/data/fonts/Chalkboard.ttf", :ttf
text "Blah Blah Blah"
end

0 comments on commit 22ddabc

Please sign in to comment.