Bug 63257

Summary: pdfTeX Type1 font embedding is broken
Product: [Retired] Red Hat Public Beta Reporter: Tom Moertel <tom>
Component: tetexAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: skipjack-beta2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-12 10:00:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Kinder, gentler Type1 font embedding patch
none
Patch to RPM spec file none

Description Tom Moertel 2002-04-11 19:09:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+)
Gecko/20020327

Description of problem:
When pdfTeX embeds Type 1 fonts into the PDF documents it creates, it does so in
a manner that, while theoretically allowable under the Type 1 spec, is "broken"
according to the friendly folks at Adobe.  The theoretical nature of this
breakage has become a physical reality in Adobe's revised Acrobat products. 
Using Acrobat Reader 5 to print a pdfTex-created document that contains embedded
Type1 fonts, for example, results in page barf when printed on a Postscript
printer.  (Luckily, a patch appeared a few months ago on the pdftex mailing
list, and it solves the problems.)

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.  Create a latex document that uses a Postscript font that is not one of the
standard "Adobe 13" built into PDF-reading products.  Use, for example, Utopia,
which comes with Red Hat Linux.
2.  Create a PDF file from the document via pdflatex.
3.  Open the document with Acrobat Reader 5 and print it to a Postscript printer.
4.  Marvel at the output's barf-like nature.
	

Actual Results:  Pages contain a horribly barf-like combination of type drawn
from the "Adobe 13" fonts.  Not Utopia.

Expected Results:  Pages, beautifully typeset in Utopia, reflect photons
lovingly into the eyes of the beholder.

Additional info:

Tom Kacvinsky posted a patch for this problem to the pdftex mailing list on 20
June 2001. http://www.tug.org/pipermail/pdftex/2001-June/001225.html  It's a
long thread.  You'll have to back up a few levels to read it all.

Bottom line: The patch works.  I added it to your tetex-1.0.7-45.src.rpm,
rebuilt the RPMs, and -- bazaam! -- all problems solved.

Note that the patch that Tom posted must be applied twice, once to each copy of
writet1.c in your pdftex-20010417.tgz tarball.  I simply duped the hunks in the
patch, and edited the headers so that the one patch would apply to both files.

I'll attach my doubled-up version of Tom's patch plus my patch to your .spec
file that incorporates the former.

Comment 1 Tom Moertel 2002-04-11 19:11:09 UTC
Created attachment 53484 [details]
Kinder, gentler Type1 font embedding patch

Comment 2 Tom Moertel 2002-04-11 19:14:39 UTC
Created attachment 53485 [details]
Patch to RPM spec file

Comment 3 Tim Waugh 2002-04-12 09:59:57 UTC
Thanks.  Fixed package is 1.0.7-47.