Sha256: 34e66d4299c8e1768ec672d521af0bbf9dc94006a1b0cef97f08715281f7c7d3

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

# encoding: utf-8

$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require "prawn"

Prawn::Document.generate "hello-ttf.pdf" do       
  fill_color "0000ff"
  font "#{Prawn::BASEDIR}/data/fonts/comicsans.ttf" 
  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
fullcirclegroup-fullcirclegroup-prawn-0.2.99.2 examples/simple_text_ttf.rb
fullcirclegroup-prawn-0.2.99.3 examples/simple_text_ttf.rb