Summary: | /rangecheck error in --get-- with some idraw drawings | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Ronan KERYELL <rk> |
Component: | PS Interpreter | Assignee: | Jack Moffitt <jack> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.14 | ||
Hardware: | PC | ||
OS: | Linux | ||
URL: | http://www.lit.enstb.org/~keryell/gs/ | ||
Customer: | Word Size: | --- |
Description
Ronan KERYELL
2004-10-22 06:50:35 UTC
Both of the referenced files work fine for me in GS 8.14 and CVS HEAD. Do you have any further info? You might also try a newer version of Ghostscript such as 8.15. After trying even another Linux kernel version :-) and strace-ing many gs I've tracked down the issue with a font file in the Debian gsfonts package, /var/lib/defoma/gs.d/dirs/fonts/n019004l.pfb that is a link to /usr/share/fonts/type1/gsfonts/n019004l.pfb. I've added a good and a bug-triggering version of this file in http://www.lit.enstb.org/~keryell/gs/ It looks like it is the same bug as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=242015 So, is it a bug in the fonts or in gs ? Since the same fonts are used in the 2 drawings, grouped or non-grouped, I will rather suspect a gs bug... The bug is mainly in idraw that assumes that FontBBox is an executable array. This happens only when v. 8.11 of Ghostscript fonts is installed, because fonts use literal array for the FontBBox. The literal FontBBox evaluates to itself instead of 4 numbers. An attempt to take 1st element (0-based) of 1-element array is a run-time PostScript error. The files generated by old idraw cannot be fixed using idiom recignition because the offending procedure is not bound. The file can be patched using any text editor, for instance sed "s|\[FontBBox\]|/FontBBox load |" <foo.ps >foo-fixed.ps We should consider using executable arrays in fonts because some (incorrect) programs depend on this and we gain nothing from the literary status of FontBBox. See bug 687297 . *** This bug has been marked as a duplicate of 687120 *** |