Sha256: 9d80417537c17394f8143c4bb1fdf46ddbec6886f9c8e81ad33593f5f462daa9
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 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.expand_path(File.join(File.dirname(__FILE__), %w[.. example_helper])) Prawn::Document.generate("utf8.pdf") do font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf" text "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει." * 20 end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
prawn-0.11.1 | examples/m17n/utf8.rb |
davebenvenuti-prawn-0.11.1.pre | examples/m17n/utf8.rb |