#40 √ resolved
Daniel Berger

Three font metrics spec failures on Windows

Reported by Daniel Berger | July 21st, 2008 @ 03:24 PM

Windows XP Pro

Ruby 1.8.6-p111

PDF-Reader 0.7.3

prawn downloaded from git on 21-Jul-2008

C:\ruby\src\prawn>rake spec

(in C:/ruby/src/prawn)

Prawn specs: Running on Ruby Version: 1.8.6

Prawn specs: Running on Ruby Version: 1.8.6

............................................................................................FF..F.............

..........................

1)

'adobe font metrics should calculate string width taking into account kerning pairs' FAILED

expected: 12.372,

got: 14.292 (using ==)

./spec/metrics_spec.rb:15:

2)

'adobe font metrics should kern a string' FAILED

expected: ["T", -80, "o"],

got: ["T", 80, "o"] (using ==)

./spec/metrics_spec.rb:20:

3)

'ttf font metrics should kern a string' FAILED

expected: ["T", -186, "o"],

got: ["\0007", 186.0, "\000R"] (using ==)

./spec/metrics_spec.rb:44:

Finished in 2.187 seconds

136 examples, 3 failures

rake aborted!

Command ruby -I"c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.3/lib" "c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.3/bin/spec" "spec/bounding_box_spec.rb" "spec/box_calculation_spec.rb" "spec/document_spec.rb" "spec/graphics_spec.rb" "spec/metrics_spec.rb" "spec/pdf_object_spec.rb" "spec/reference_spec.rb" "spec/spec_helper.rb" "spec/table_spec.rb" "spec/text_spec.rb" failed

Regards,

Dan

Comments and changes to this ticket

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 »

Project Details

Prawn is a fast and nimble PDF generator written in pure Ruby. You can find the code on Github: http://github.com/sandal/prawn

README: Ticket Notes
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.

If you have a moment to help out, please tag tickets in the "Uncategorized Tickets" bin as either a request or a defect. If you're looking for a more serious commitment, consider browsing the tickets that have been put on hold and then contact us if you want to help out with any of them.

A Friendly Reminder
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.

Shared Ticket Bins

People watching this ticket

Tags