Sha256: df21e284dc65fdd1df3a32d3f93ddb335e0ab368d1e95769c5a4245686e263da
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
# encoding: utf-8 # # An early example of TTF font embedding. Mostly kept for nostalgia's sake. # require File.expand_path(File.join(File.dirname(__FILE__), %w[.. example_helper])) Prawn::Document.generate "simple_text_ttf.pdf" do fill_color "0000ff" font "#{Prawn::BASEDIR}/data/fonts/comicsans.ttf" draw_text "Hello World", :at => [200,720], :size => 32 font "#{Prawn::BASEDIR}/data/fonts/Chalkboard.ttf" pad(20) do text "This is chalkboard wrapping " * 20 end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
prawn-0.11.1 | examples/text/simple_text_ttf.rb |
davebenvenuti-prawn-0.11.1.pre | examples/text/simple_text_ttf.rb |