Bug 689740 - Text spacing of zero when rendering PDF file
Summary: Text spacing of zero when rendering PDF file
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: master
Hardware: PC Linux
: P2 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 23:02 UTC by Marcos H. Woehrmann
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer: 353
Word Size: ---


Attachments
screenshot.png (692 bytes, image/png)
2008-03-06 23:03 UTC, Marcos H. Woehrmann
Details
Chart.pdf (13.61 KB, application/pdf)
2008-03-06 23:03 UTC, Marcos H. Woehrmann
Details
patch (1.74 KB, patch)
2008-03-09 19:13 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2008-03-06 23:02:31 UTC
Ghostscript renders the text in the attached PDF file with a spacing of zero
(i.e. all the letters are on top of each other), see screenshot.png attached for
the upper left hand corner of the page.  This occurs with every version I
tested, from 8.51 through. head (r8588).  The problem goes away if
-DTextAlphaBits=4 is used.

The command line I'm using:

  bin/gs -sDEVICE=ppmraw -o test.pdf -r300 ./Chart.pdf

Acrobat Reader and evince both read the file okay.
Comment 1 Marcos H. Woehrmann 2008-03-06 23:03:20 UTC
Created attachment 3843 [details]
screenshot.png
Comment 2 Marcos H. Woehrmann 2008-03-06 23:03:30 UTC
Created attachment 3844 [details]
Chart.pdf
Comment 3 Alex Cherepanov 2008-03-09 19:13:30 UTC
Created attachment 3851 [details]
patch

When the font has no /FontBBox but provides character widths through /Metrics
dictionary, use them instead of the calculated widths. The old code did so only

when both widths and side bearings were defined.

This patch extends the changes committed as a rev. 5607 for the bug 687846.
Regression testing shows no differences.
Comment 4 Alex Cherepanov 2008-03-09 19:45:01 UTC
The patch is committed as a rev. 8594.
A simplified test file is added to the sample collection by rev. 8595.