Red Hat Bugzilla – Bug 688996
Incorrect spacing with a CIDType2 font with a gsub table
Last modified: 2012-02-21 01:47:08 EST
Created attachment 486299 [details] Reproduction sample Description of problem: Since last update, ghostscript does not properly render certain pdf files. from 8.15.2-9.11.el5, to 8.70-6.el5 Version-Release number of selected component (if applicable): 8.70-6.el5 How reproducible: Please see attachment. Renders fine in 8.15.2-9.11.el5 and 9.01-1.fc15, corrupted in 8.70-6.el5 and 8.71-16.fc14.x86_64.
Confirmed. The spacing of the lettering is completely out. Comparison of -dDEBUG output between 8.70-6.el5 and 9.01-1.fc15 shows that 9.01-1.fc15 (which gets it right) has extra FAPI debugging output: FAPIhook DIN-LightAlternate Trying to render the font Font DIN-LightAlternate with FAPI... Font DIN-LightAlternate is being rendered with FAPI=FreeType [...] FAPIhook DIN-LightAlternate Font DIN_LightAlternate is mapped to FAPI=FreeType
Trying the Resource/Init/gs_fapi.ps from 9.01 as a drop-in replacement has no discernable effect. Will need to try bisecting between the two revisions to see when/why/how it was fixed.
May be related to bug #694649.
*** Bug 694649 has been marked as a duplicate of this bug. ***
Created attachment 491523 [details] ghostscript-charspacing.patch Patch from upstream bug.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0284.html