Summary: | Error: /invalidfont in --.type42execchar-- | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Jason Giglio <gigs> |
Component: | PDF Interpreter | Assignee: | Alex Cherepanov <alex> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | CC: | leonardo |
Priority: | P3 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
hack3inf.pdf simplified sample file
patch |
Description
Jason Giglio
2006-01-19 12:36:28 UTC
Created attachment 1936 [details]
Bad file
Acrobat 5 cannot render the sample file either. First, there's a white rectangle that obscures most of the view. After removing the rectangle, one can see that the word maiz (with iacute, ( ma\355z) Tj ) is rendered as ma . After removing the offending character, it's rendered as maz. Most likely the font is invalid. Acrobat Reader 6 and 7 show the word maiz correctly. It looks like Ghostscript need one more hack in the font interpreter. fwiw, MacOS X Preview (Apple Quartz) renders this without complaining too. Created attachment 1953 [details]
hack3inf.pdf simplified sample file
The error is detected at ttinterp.c:3650 diring execution of
SHC instruction. I didn't figure out yet ehether this is a font or
interpreter bug.
Attached is a sample file most of unrelated objects removed.
Created attachment 1966 [details]
patch
Following FreeType 2 implementation, ignore incorrect SHC command.
We don't have test cases that exercise this branch.
So the regression test detects no differences.
Please commit. The patch is committed in rev. 6559. |