Bug 692310 - Emedded fonts with UTF-8 support printed as squares / blocks
Summary: Emedded fonts with UTF-8 support printed as squares / blocks
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Font API (show other bugs)
Version: 9.02
Hardware: All All
: P4 major
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-28 17:32 UTC by Maarten
Modified: 2011-06-29 07:04 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
PDF with embedded UTF-8 font (99.09 KB, application/pdf)
2011-06-28 17:32 UTC, Maarten
Details
PDF missing output (12.16 KB, application/pdf)
2011-06-28 22:19 UTC, Maarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten 2011-06-28 17:32:12 UTC
Created attachment 7621 [details]
PDF with embedded UTF-8 font

After upgrading from Fedora 14 to Fedora 15 with Ghostscript 9.02, we couldn't print any of our self generated PDF documents anymore. Instead of normal text we get little squares / blocks with or no text at all.

We use CUPS for printing documents, but the following Ghostscript command gives exactly the same result:

 gs -sDEVICE=png16m -sOUTPUTFILE=foo.png -q -dNOPAUSE foo.pdf -c quit

The PDF's are generated with tFPDF which can be found on 
http://fpdf.org/en/script/script92.php. The example there (http://fpdf.org/en/script/ex92.pdf) gives the exact same error.
Comment 1 Maarten 2011-06-28 17:39:33 UTC
Ghostscript 8.72 can succesfully render PNG, only never versions fail.
Comment 2 Chris Liddell (chrisl) 2011-06-28 21:04:30 UTC
Fixed in commit:
31cb1ff75d4a77ac32854a68f56d973d06b5da10


http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=31cb1ff


Note that the font is actually broken: the glyf program contains a reference to an undefined function. If the glyph fails in this way, we'll now fall back to rendering the glyph unhinted (which matches the old behaviour).
Comment 3 Maarten 2011-06-28 22:19:21 UTC
Created attachment 7626 [details]
PDF missing output

While the patch supplied fixes the issues with the original PDF, the PDF from the the tFPDF example is still having issues. 

Please have another look, and thanks a lot for the patch provided.
Comment 4 Maarten 2011-06-28 22:20:18 UTC
Reopened due to error in other PDF
Comment 5 Chris Liddell (chrisl) 2011-06-29 07:04:45 UTC
Sorry, my confusion, the second PDF (ex92.pdf) does actually work with the current git master/HEAD revision.