TTF embedding broken on win32
Reported by James Healy | July 18th, 2008 @ 08:24 AM
Both these test.rb files just call font with the path to a TTF file included with the prawn distribution. Reported by mindaugas on IRC, confirmed by James Healy.
E:\devel\projects\dxo2\vendor\gems\prawn-0.0.0.1>ruby test.rb
./lib/prawn/document/text.rb:227:in `embed_ttf_font': E:/devel/projects/dxo2/ven
dor/gems/prawn-0.0.0.1/data/fonts/comicsans.ttf missing the required encoding ta
ble (RuntimeError)
from ./lib/prawn/document/text.rb:121:in `font'
from test.rb:8
from ./lib/prawn/document.rb:46:in `instance_eval'
from ./lib/prawn/document.rb:46:in `generate'
from test.rb:6
E:\devel\projects\dxo2\vendor\gems\prawn-0.0.0.1>ruby test.rb
./lib/prawn/document/text.rb:222:in `embed_ttf_font': Can't detect a postscript
name for E:/devel/projects/dxo2/vendor/gems/prawn-0.0.0.1/data/fonts/DejaVuSans.
ttf (RuntimeError)
from ./lib/prawn/document/text.rb:121:in `font'
from test.rb:8
from ./lib/prawn/document.rb:46:in `instance_eval'
from ./lib/prawn/document.rb:46:in `generate'
from test.rb:7
Comments and changes to this ticket
-

James Healy July 18th, 2008 @ 08:45 AM
A better formatted copy of the above code: http://pastie.org/236375
-

Gregory Brown July 18th, 2008 @ 11:56 AM
- → State changed from new to resolved
We were dumb and not reading the files as binaries.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Prawn is a fast and nimble PDF generator written in pure Ruby. You can find the code on Github: http://github.com/sandal/prawn
When you file a ticket, please tag bug reports with 'defect' and feature requests with 'request'. Please do not attach patches to tickets, instead submit them by sending a pull request on Github.
Please use the mailing list for discussion, and Github for patching. The bug tracker is well... a bug tracker. If you've got rough ideas for things you'd like to see or encounter a problem that you aren't sure is a bug, use the mailing list before filing a ticket.
