Bug 690166 - extra space after apostrophe when distilled
Summary: extra space after apostrophe when distilled
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.63
Hardware: All Windows XP
: P2 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-11 11:48 UTC by Mark DeVries
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer: 1130
Word Size: ---


Attachments
apostrophes.ps (43.61 KB, application/postscript)
2008-11-11 11:50 UTC, Mark DeVries
Details
apostrophes-863-bad.pdf (10.89 KB, application/pdf)
2008-11-11 11:51 UTC, Mark DeVries
Details
apostrophes-850-good.pdf (106.05 KB, application/pdf)
2008-11-11 11:51 UTC, Mark DeVries
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark DeVries 2008-11-11 11:48:11 UTC
In the sample PostScript file, characters are spaced normally when viewed with
gs. When distilled to PDF with gs 8.63, blank space appears after each
apostrophe character.  This happens on both Windows XP and RedHat Linux.  Same
PS file distilled with gs 8.50 has correct spacing.
Comment 1 Mark DeVries 2008-11-11 11:50:22 UTC
Created attachment 4591 [details]
apostrophes.ps
Comment 2 Mark DeVries 2008-11-11 11:51:12 UTC
Created attachment 4592 [details]
apostrophes-863-bad.pdf
Comment 3 Mark DeVries 2008-11-11 11:51:44 UTC
Created attachment 4593 [details]
apostrophes-850-good.pdf
Comment 4 Marcos H. Woehrmann 2008-11-11 20:42:43 UTC
Confirmed that it also happens with gshead (r9215).  Looking for the revision
which broke this now.
Comment 5 Marcos H. Woehrmann 2008-11-11 22:02:19 UTC
Behavior changed in r8235:

r8235 | ken | 2007-09-10 01:31:42 -0700 (Mon, 10 Sep 2007) | 58 lines

Update pdfwrite to handle type 0 fonts with type 1 or type 2 descendant fonts.
Comment 6 Ken Sharp 2008-11-17 02:43:36 UTC
The call to pdf_adjust_first_last_char always used a length of 1, instead of the
string length, which meant only the first member of the string was used.

Fixed in revision 9223 with this patch:

http://ghostscript.com/pipermail/gs-cvs/2008-November/008802.html