Bug 615620

Summary: (pdfwrite) TT checksums missed
Product: Ghostscript Reporter: Igor Melichev <igor.melichev>
Component: GeneralAssignee: Ralph Giles <ralph.giles>
Status: NOTIFIED LATER    
Severity: normal    
Priority: P3    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Igor Melichev 2002-09-27 11:47:41 UTC
Originally reported by: igorm@users.sourceforge.net
psf_write_truetype_data writes TT font with incorrect 
checksums for most tables. It is small importance 
because most TT interpreters ignore them. Perhaps a 
complete fix should generate TT data in 2 passes : the 
first pass computes the checksums, the second one 
really writes data. So complex due to the output stream 
isn't positionable (likely it's a FlateEncode filter). 

I'd suggest to implement a special encoding filter for 
checksums, and execute the body of 
psf_write_truetype_data twice : first with the checksum 
filter, second with the real output stream. After a TT 
table is completed, its checksum to be taken from the 
filter and to be put into the 'tables' array.
Comment 1 Jack Moffitt 2002-10-02 10:08:44 UTC
Comment originally by jackiem@users.sourceforge.net
Logged In: YES 
user_id=206537

Need to move this to issues.