diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-09-26 06:42:05 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-09-26 06:42:05 +0000 |
commit | 166b550aed9699c19aea2f2ea694090d3e4c2655 (patch) | |
tree | e96615d9f77c6a66294932078f400a11132f1ff6 | |
parent | 985e6467f1516a82dbc0ca6ab6010e76fb6e039a (diff) | |
download | ghostpdl-166b550aed9699c19aea2f2ea694090d3e4c2655.tar.gz |
Fix: The 'head' table in embedded TrueType fonts had a length of 56; it
should have a length of 54 and be followed by 2 padding bytes.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@749 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/src/gdevpsft.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gs/src/gdevpsft.c b/gs/src/gdevpsft.c index 331e34102..6e1cd6725 100644 --- a/gs/src/gdevpsft.c +++ b/gs/src/gdevpsft.c @@ -714,7 +714,11 @@ psf_write_truetype_data(stream *s, gs_font_type42 *pfont, int options, tab += 16; } - offset = put_table(tab, "head", head_checksum, offset, 56); + /* + * Note that the 'head' table must have length 54, even though + * it occupies 56 bytes on the file. + */ + offset = put_table(tab, "head", head_checksum, offset, 54); tab += 16; } numTables = numTables_out; |