Sha256: 0d45efc7bbf78039fc8dfce06dfbd3b5bb0d04b8dea23c5189be15fb53d408d6
Contents?: true
Size: 447 Bytes
Versions: 5
Compression:
Stored size: 447 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. # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require "prawn" Prawn::Document.generate("utf8.pdf") do font "#{Prawn::BASEDIR}/data/fonts/DejaVuSans.ttf" text "ὕαλον ϕαγεῖν δύναμαι· τοῦτο οὔ με βλάπτει." * 20 end
Version data entries
5 entries across 5 versions & 2 rubygems