Bug 690567

Summary: Broken type cast for TrueType fonts on 64bit architectures
Product: Ghostscript Reporter: Dr. Werner Fink <werner>
Component: Font APIAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 8.64   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: ghostscript-8.60-truetype.dif

Description Dr. Werner Fink 2009-06-24 06:25:27 UTC
There is a small problem shown by new gcc with the types used
in the TrueType fonts handling.
Comment 1 Dr. Werner Fink 2009-06-24 06:26:06 UTC
Created attachment 5152 [details]
ghostscript-8.60-truetype.dif

this small patch avoids the problem
Comment 2 Ray Johnston 2009-06-25 10:17:01 UTC
This patch needs _careful_ review.
Comment 3 Ken Sharp 2009-06-26 00:09:37 UTC
All PostScript & PDF patterns/shadings can be represented as patterns or
shadings in an output PDF file, so there is (generally at least) no need to fall
back to conversion into an image or images.

I haven't searched exhaustively, but I haven't seen a PS/PDF file exercise this
path.

The problem doesn't seem to be pdfwrite, the reference counting takes place in
the graphics library.
Comment 4 Ken Sharp 2009-06-26 00:11:40 UTC
<sigh> Sorry, comment #3 was intended for a different issue....
Comment 5 Dr. Werner Fink 2009-06-26 02:10:38 UTC
No problem ... I'm familiar with the handling of large numbers of
bugzilla entries ;)
Comment 6 Ken Sharp 2010-08-13 09:28:41 UTC
Since revision 11071 (approximately) Ghostscript now uses the FreeType engine for font interpretation and rasterisation by default. As a result this code is not usually used.

We are temporarily retaining it for backward compatibility (should anyone find a problem with the FreeType integration they will be able to switch back) but will eventually remove it from the code base.