Bug 615620 - (pdfwrite) TT checksums missed
(pdfwrite) TT checksums missed
Product: Ghostscript
Classification: Unclassified
Component: General
All All
: P3 normal
Assigned To: Ralph Giles
Bug traffic
Depends on:
  Show dependency treegraph
Reported: 2002-09-27 11:47 PDT by Igor Melichev
Modified: 2009-06-02 12:01 PDT (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 PDT
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 PDT
Comment originally by jackiem@users.sourceforge.net
Logged In: YES 

Need to move this to issues.