Sha256: 31b102c3ea9a3f9633ea95d84970f1408c633e4031bbc54357fada33d24022e7

Contents?: true

Size: 415 Bytes

Versions: 21

Compression:

Stored size: 415 Bytes

Contents

# encoding: utf-8
#
# Shows that Prawn works out of the box with UTF-8 text, so long as you use
# a TTF file with the necessary glyphs for your content.
#
require "#{File.dirname(__FILE__)}/../example_helper.rb"

Prawn::Document.generate("utf8.pdf") do
  font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf"
  text "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει." * 20
end

      

Version data entries

21 entries across 21 versions & 7 rubygems

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