Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding TTF embedding issue, but not producing on OS X acrobat or prev…

…iew. Trying windows now
  • Loading branch information...
commit a291ff47868c828b71d85c114fc5677b702cb7ce 1 parent 9ad9cd9
@practicingruby practicingruby authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 bugs/ttf_embedding.rb
  2. BIN  data/fonts/Vera.ttf
View
15 bugs/ttf_embedding.rb
@@ -0,0 +1,15 @@
+# encoding: utf-8
+#
+# As of 7d8d466e6415c16d594fb4c4fd3207a0f52e545c ...
+#
+#
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+require "prawn"
+
+Prawn::Document.generate('vera-test.pdf') do
+ font_families["Vera"] = {
+ :normal => "#{Prawn::BASEDIR}/data/fonts/Vera.ttf"
+ }
+ font "Vera"
+ text "Using Vera Verbosely", :size => 20
+end
View
BIN  data/fonts/Vera.ttf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.