Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 70b373e7289fc2c40e24bf6aa225b657 > files > 2

ghostscript-8.71-71.2mdv2010.1.src.rpm

diff -ur ghostscript-8.64.orig/Resource/Init/pdf_font.ps ghostscript-8.64/Resource/Init/pdf_font.ps
--- ghostscript-8.64.orig/Resource/Init/pdf_font.ps	2009-01-07 09:33:14.000000000 +0100
+++ ghostscript-8.64/Resource/Init/pdf_font.ps	2009-02-08 00:18:18.000000000 +0100
@@ -255,7 +255,16 @@
       } if
       div
                 % Stack: font font-res mscale
-      /FirstChar 2 index /FirstChar oget def
+      /FirstChar 2 index /FirstChar knownoget not {
+        2 index /FirtsChar knownoget {
+          (   **** Warning: /FirstChar is misspelled as /FirtsChar.\n)
+          pdfformaterror
+        } {
+          0
+          (   **** Warning: /FirstChar is missing, assuming 0.\n)
+          pdfformaterror
+        } ifelse
+      } if def
       /LastChar  2 index /LastChar  oget def
 
       Encoding length LastChar le {