Sha256: e8eb716bdb9dfa6cf1a7e7d3848e055e64ffd8aead3232f8a2ac7f80c590c69c

Contents?: true

Size: 271 Bytes

Versions: 7

Compression:

Stored size: 271 Bytes

Contents

# encoding: utf-8
#
# Example of character spacing
#
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

Prawn::Document.generate "character_spacing.pdf" do |pdf|
  string = "hello world " * 50
  pdf.text(string, :character_spacing => 2.5)
  pdf.text(string)
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
prawn-0.11.1.pre examples/text/character_spacing.rb
goodwill-prawn-edge-0.10.0 examples/text/character_spacing.rb
alphasights-prawn-0.10.4 examples/text/character_spacing.rb
alphasights-prawn-0.10.3 examples/text/character_spacing.rb
alphasights-prawn-0.10.2 examples/text/character_spacing.rb
alphasights-prawn-0.10.1 examples/text/character_spacing.rb
alphasights-prawn-0.10.0 examples/text/character_spacing.rb