Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git@github.com:sandal/prawn

  • Loading branch information...
commit 339e51393a14de172ffcb4a98e547bdf538200de 2 parents a5cfaff + dcddfab
@practicingruby practicingruby authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/prawn/font/ttf.rb
  2. +1 −1  vendor/ttfunk
View
5 lib/prawn/font/ttf.rb
@@ -229,7 +229,10 @@ def embed(reference, subset)
# subset. Perhaps this could be done by querying the subset,
# rather than by parsing the font that the subset produces?
font = TTFunk::File.new(font_content)
- basename = font.name.postscript_name
+
+ # empirically, it looks like Adobe Reader will not display fonts
+ # if their font name is more than 33 bytes long. Strange. But true.
+ basename = font.name.postscript_name[0, 33]
raise "Can't detect a postscript name for #{file}" if basename.nil?
2  vendor/ttfunk
@@ -1 +1 @@
-Subproject commit 158a82ab543f319cd8ed4870e0735c353b747e3b
+Subproject commit c5a8171a6721adea44c1db338306ee1dcdd504f8

0 comments on commit 339e513

Please sign in to comment.
Something went wrong with that request. Please try again.