[gs-cvs] rev 8627 - trunk/gs/lib

alexcher at ghostscript.com alexcher at ghostscript.com
Sun Apr 6 14:42:34 PDT 2008


Author: alexcher
Date: 2008-04-06 14:42:34 -0700 (Sun, 06 Apr 2008)
New Revision: 8627

Modified:
   trunk/gs/lib/pdf_font.ps
Log:
Use operator .execn to keep the operand stack size and .pdfcount value
consistent during /BuildChar execution. Operator scn depends on the correct
value of .pdfcount. Bug 688796.

DIFFERENCES:
None


Modified: trunk/gs/lib/pdf_font.ps
===================================================================
--- trunk/gs/lib/pdf_font.ps	2008-04-06 07:57:33 UTC (rev 8626)
+++ trunk/gs/lib/pdf_font.ps	2008-04-06 21:42:34 UTC (rev 8627)
@@ -830,14 +830,14 @@
       1 index begin 3 dict begin
       /Font 3 -1 roll def /CharCode 1 index def
       Encoding exch get CharProcs exch knownoget {
-        PDFfile fileposition exch
-        //false resolvestream
+        { //false resolvestream
 		% Stack: filepos stream
 		% Don't let setgcolor set the color inside the BuildGlyph
 		% procedure, because this causes an /undefined error.
-        q //null /FillColor gput //null /StrokeColor gput
-        Font /Resources get exch pdfopdict .pdfruncontext
-        Q
+          q //null /FillColor gput //null /StrokeColor gput
+          Font /Resources get exch pdfopdict .pdfruncontext
+          Q
+        } PDFfile fileposition 2 .execn % Keep pdfcount valid.
         PDFfile exch setfileposition
       } {
         % PDF Type 3 fonts don't use .notdef



More information about the gs-cvs mailing list