Sha256: b6f643bd72366964f8acca1b2a0de57487bd3b93fad8a6a11cbc8764179ceafc

Contents?: true

Size: 332 Bytes

Versions: 2

Compression:

Stored size: 332 Bytes

Contents

# encoding: utf-8
#
# Example of character spacing
#
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

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

2 entries across 2 versions & 2 rubygems

Version Path
prawn-0.11.1 examples/text/character_spacing.rb
davebenvenuti-prawn-0.11.1.pre examples/text/character_spacing.rb