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
prawn-core-0.5.1 examples/m17n/euro.rb