Bug 615620 - (pdfwrite) TT checksums missed
Summary: (pdfwrite) TT checksums missed
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: All All
: P3 normal
Assignee: Ralph Giles
Depends on:
Reported: 2002-09-27 11:47 UTC by Igor Melichev
Modified: 2009-06-02 12:01 UTC (History)
0 users

See Also:
Word Size: ---


Note You need to log in before you can comment on or make changes to this bug.
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 

Need to move this to issues.