Sha256: 9ad5497925ba0ec6e09d04167c233d705fff4d77dd5b7e16680f9b59d098dbd0

Contents?: true

Size: 536 Bytes

Versions: 21

Compression:

Stored size: 536 Bytes

Contents

# encoding: utf-8
#
# As of Prawn 0.3, it is possible to generate a Euro using the built-in
# AFM files.  However, you need to be sure to manually add spacing around it,
# as its calculated width in the AFM files seem to be wrong.
#
# We are investigating this issue, but it does not seem to be Prawn specific.
# If you need precision spacing, use a TTF file instead and the issue will
# go away.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

Prawn::Document.generate "euro.pdf" do
  text "A Euro! € ©", :size => 32
end

Version data entries

21 entries across 21 versions & 7 rubygems

Version Path
piglop-prawn-0.10.2.3 examples/m17n/euro.rb
piglop-prawn-0.10.2.2 examples/m17n/euro.rb
piglop-prawn-0.10.2.1 examples/m17n/euro.rb
prawn-0.11.1.pre examples/m17n/euro.rb
goodwill-prawn-edge-0.10.0 examples/m17n/euro.rb
alphasights-prawn-0.10.4 examples/m17n/euro.rb
alphasights-prawn-0.10.3 examples/m17n/euro.rb
alphasights-prawn-0.10.2 examples/m17n/euro.rb
alphasights-prawn-0.10.1 examples/m17n/euro.rb
alphasights-prawn-0.10.0 examples/m17n/euro.rb
prawn-core-0.8.4 examples/m17n/euro.rb
prawn-graph-0.0.2 vendor/prawn-core/examples/m17n/euro.rb
prawn-graph-0.0.1 vendor/prawn-core/examples/m17n/euro.rb
prawn-core-0.7.2 examples/m17n/euro.rb
prawn-core-0.7.1 examples/m17n/euro.rb
prawn-layout-0.3.2 vendor/prawn-core/examples/m17n/euro.rb
prawn-core-0.6.3 examples/m17n/euro.rb
prawn-core-0.6.2 examples/m17n/euro.rb
prawn-layout-0.3.1 vendor/prawn-core/examples/m17n/euro.rb
prawn-core-0.6.1 examples/m17n/euro.rb