Bug 690166

Summary: extra space after apostrophe when distilled
Product: Ghostscript Reporter: Mark DeVries <mdevries>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 8.63   
Hardware: All   
OS: Windows XP   
Customer: 1130 Word Size: ---
Attachments: apostrophes.ps
apostrophes-863-bad.pdf
apostrophes-850-good.pdf

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