Bug 688996 - Incorrect spacing with a CIDType2 font with a gsub table
Summary: Incorrect spacing with a CIDType2 font with a gsub table
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ghostscript
Version: 5.6
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: Desktop QE
URL:
Whiteboard:
: 694649 (view as bug list)
Depends On:
Blocks: 668957 695766 719046 734767
TreeView+ depends on / blocked
 
Reported: 2011-03-18 18:29 UTC by Kal McFate
Modified: 2018-11-14 17:33 UTC (History)
6 users (show)

Fixed In Version: ghostscript-8.70-7.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 695766 (view as bug list)
Environment:
Last Closed: 2012-02-21 06:47:08 UTC
Target Upstream Version:


Attachments (Terms of Use)
Reproduction sample (480.41 KB, application/pdf)
2011-03-18 18:29 UTC, Kal McFate
no flags Details
ghostscript-charspacing.patch (591 bytes, patch)
2011-04-12 15:57 UTC, Tim Waugh
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Ghostscript 691692 0 None None None Never
Red Hat Product Errata RHBA-2012:0284 0 normal SHIPPED_LIVE ghostscript bug fix and enhancement update 2012-02-20 15:05:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.