Patch for the PDF backend when setting pdf.use14corefonts=True is used

The PDF backend breaks when the setting pdf.use14corefonts=True is
used. You'll find a test case reproducing this bug in the attached
file 'test_pdf_use14corefonts.py'.

This setting is very useful because it produces very lightweight PDF
files. The files are lightweight because they only use the 14 core
fonts built in every PDF viewers (like Helvetica and Times).

Attached to this email is a patch against the current trunk containing
the bug fix and the related test case. Do you agree to commit it?

Thanks,

Nicolas Grilly

pdf_use14corefonts_bugfix.patch (2.6 KB)

test_pdf_use14corefonts.py (653 Bytes)