Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:sandal/prawn
Browse files Browse the repository at this point in the history
  • Loading branch information
practicingruby committed Jan 23, 2009
2 parents a5cfaff + dcddfab commit 339e513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/prawn/font/ttf.rb
Expand Up @@ -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?

Expand Down
2 changes: 1 addition & 1 deletion vendor/ttfunk
Submodule ttfunk updated from 158a82 to c5a817

0 comments on commit 339e513

Please sign in to comment.