Fix for 687906: Resolve indirect objects in Widths
Raph Levien <[email protected]> Wed, 26 Jan 2005 10:33:33 -0800
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
The problem is that the Widths array (6 0 obj) has entries that are indirect
object references (7 0 R) to numbers, in addition to plain numbers. Using
'oget' rather than 'get' to retrieve values from the array, as in the attached
patch, fixes the problem.
Index: lib/pdf_font.ps
===================================================================
RCS file: /cvs/ghostscript/gs/lib/pdf_font.ps,v
retrieving revision 1.75
diff -C2 -r1.75 pdf_font.ps
*** lib/pdf_font.ps 25 Jan 2005 21:23:01 -0000 1.75
--- lib/pdf_font.ps 26 Jan 2005 18:19:51 -0000
***************
*** 209,213 ****
} { 1000 } ifelse
} {
! get
} ifelse
% Stack: font font-res mscale first-char index charname width
--- 209,213 ----
} { 1000 } ifelse
} {
! oget
} ifelse
% Stack: font font-res mscale first-char index charname width