Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 339e51393a14de172ffcb4a98e547bdf538200de 2 parents a5cfaff + dcddfab
Gregory Brown sandal authored

Showing 2 changed files with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 1 lib/prawn/font/ttf.rb
  2. +1 1  vendor/ttfunk
5 lib/prawn/font/ttf.rb
@@ -229,7 +229,10 @@ def embed(reference, subset)
229 229 # subset. Perhaps this could be done by querying the subset,
230 230 # rather than by parsing the font that the subset produces?
231 231 font = TTFunk::File.new(font_content)
232   - basename = font.name.postscript_name
  232 +
  233 + # empirically, it looks like Adobe Reader will not display fonts
  234 + # if their font name is more than 33 bytes long. Strange. But true.
  235 + basename = font.name.postscript_name[0, 33]
233 236
234 237 raise "Can't detect a postscript name for #{file}" if basename.nil?
235 238
2  vendor/ttfunk
... ... @@ -1 +1 @@
1   -Subproject commit 158a82ab543f319cd8ed4870e0735c353b747e3b
  1 +Subproject commit c5a8171a6721adea44c1db338306ee1dcdd504f8

0 comments on commit 339e513

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