When trying to convert the attached PDF file to PDF with GS Head i get the following error /invalidfont in --show--.
Created attachment 1990 [details] PDF file (zipped with winzip)
Created attachment 1995 [details] patch Upgrade ttf_OS_2_t structure to support v.2 (96-byte) OS/2 table. Out test suite has no files with 96-byte tables. So the patch should not be detectable by our regression testing.
1. The patch adds a confusable code. Please rewrite like this : + stream_write(s, &os2, offset_of(ttf_OS_2_t, os2.sxHeight[0])); + put_pad(s, offset_of(ttf_OS_2_t, os2.sxHeight[0])); 2. Please add a comment why the new fields are not written.
Created attachment 2012 [details] improved path Improved path that uses offset_of macro and adds a comment.
Proposed log message: Upgrade ttf_OS_2_t structure to support v.2 (96-byte) OS/2 table. DETAILS: We don't use the new fields in the 96-byte structure and continue to create 86-byre structures. The extra space is used as a buffer when we copy the structure intact. DIFFERENCES: None Out test suite has no files with 96-byte tables. So the patch is not exercised by the regression test.
Alex, please commit Comment #4,5.
The patch is committed to the trunk, rev. 6574.
The patch caused a regression and has been unwinded with http://ghostscript.com/pipermail/gs-cvs/2006-February/006338.html
Created attachment 2018 [details] cur.pdf One file generated with 6574
Created attachment 2019 [details] hdr.pdf Another file generated with 6574 with different home directory paths. OS/2 table got another length, didn't analyze why.
cur.pdf, hdr.pdf are generated from 01_001.pdf with -dLastPage=1.
Marking this bug as a dup of 688678, becase both have same reason. Also changing the assignment because there was no activity for a long time.
Patch to HEAD : http://ghostscript.com/pipermail/gs-cvs/2006-July/006677.html