Bug 688996

Summary: Incorrect spacing with a CIDType2 font with a gsub table
Product: Red Hat Enterprise Linux 5 Reporter: Kal McFate <kmcfate>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 5.6CC: aalam, bgollahe, bmason, cww, pknirsch, spoyarek
Target Milestone: rcKeywords: Patch, Regression, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ghostscript-8.70-7.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 695766 (view as bug list) Environment:
Last Closed: 2012-02-21 06:47:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 668957, 695766, 719046, 734767    
Attachments:
Description Flags
Reproduction sample
none
ghostscript-charspacing.patch none

Description Kal McFate 2011-03-18 18:29:31 UTC
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.

Comment 1 Tim Waugh 2011-03-23 16:26:20 UTC
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

Comment 2 Tim Waugh 2011-03-23 16:31:59 UTC
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.

Comment 3 Tim Waugh 2011-04-11 12:30:55 UTC
May be related to bug #694649.

Comment 4 Tim Waugh 2011-04-12 15:44:11 UTC
*** Bug 694649 has been marked as a duplicate of this bug. ***

Comment 5 Tim Waugh 2011-04-12 15:57:08 UTC
Created attachment 491523 [details]
ghostscript-charspacing.patch

Patch from upstream bug.

Comment 13 errata-xmlrpc 2012-02-21 06:47:08 UTC
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