Bug 691906

Summary: Regression: quotes replaced by accented i
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: RegressionAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P2    
Version: master   
Hardware: PC   
OS: All   
Customer: 353 Word Size: ---
Attachments: Simplified sample file

Description Marcos H. Woehrmann 2011-01-24 18:16:07 UTC
The customer reports and I've verified that when the attached PDF file is converted by Ghostscript head (r12049) and 9.00 the quote marks around the words "kick-in" are replaced by accented i characters.  The file opens as expected with Acrobat 10.0.0 and Apple Preview 5.0.3.

Older versions of Ghostscript open the file correctly; this regression started with r10575:

r10575 | alexcher | 2010-01-02 10:45:15 -0800 (Sat, 02 Jan 2010) | 16 lines

Implement symbolic glyph mapping as described in PDF 1.7. Use it for TrueType
fonts with symbolic flag set or having no encoding entry.



The command line I'm using for testing:

  bin/gs -sDEVICE=ppmraw -o test.ppm ./8.0.202.109_dci_name_0002_2.pdf
Comment 1 Marcos H. Woehrmann 2011-01-24 18:16:39 UTC
Created attachment 7149 [details]
8.0.202.109_dci_name_0002_2.pdf
Comment 2 Alex Cherepanov 2011-06-03 16:45:08 UTC
PDF font descriptor has 3 attributes that affect whether the TT font
is processed as symbolic one. The spec is not clear what to do when
the attributes conflict. This revision considers fonts that have
/WinAnsiEncoding or /MacRomanEncoding as non-symbolic regardless of
the flags.

See:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=636788a8e6d2133a7e3294ee4e1b573c64e1254a

Regression testing shows no differences. We need to add a 
simplified sample file to the regression suite.
Comment 3 Alex Cherepanov 2011-06-03 16:46:08 UTC
Created attachment 7562 [details]
Simplified sample file