Sha256: 7cabb3623ad6251d7f9ddeff1f7e5f28ad823185ddb8be13cb986ba00a53b7b0

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

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

Prawn::Document.generate "font_size.pdf", :page_size => "A4" do
  font 'Helvetica'
  font.size = 16
  
  text 'Font at 16 point'
  
  font.size 9 do
    text 'Font at 9 point'
    text 'Font at manual override 20 point', :size => 20
    text 'Font at 9 point'
  end
  
  text 'Font at 16 point'
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
satoko-prawn-0.2.99.6 examples/font_size.rb
prawn-0.2.0 examples/font_size.rb
prawn-0.2.1 examples/font_size.rb
prawn-0.2.2 examples/font_size.rb
prawn-0.2.3 examples/font_size.rb