[gs-cvs] rev 9115 - trunk/ghostpdl/pcl

henrys at ghostscript.com henrys at ghostscript.com
Mon Sep 22 09:34:24 PDT 2008


Author: henrys
Date: 2008-09-22 09:34:24 -0700 (Mon, 22 Sep 2008)
New Revision: 9115

Modified:
   trunk/ghostpdl/pcl/pcsfont.c
Log:
Fixes 690087.  Change the behavior of the pcl interpreter to continue
instead of returning an error if the font type is not recognized.  No
expected differences.


Modified: trunk/ghostpdl/pcl/pcsfont.c
===================================================================
--- trunk/ghostpdl/pcl/pcsfont.c	2008-09-22 10:56:52 UTC (rev 9114)
+++ trunk/ghostpdl/pcl/pcsfont.c	2008-09-22 16:34:24 UTC (rev 9115)
@@ -36,6 +36,10 @@
 #include "gxfont.h"
 #include "gxfont42.h"
 
+/* comment out to return an error instead of continuing when
+   processing a corrupt download font. */
+#define IGNORE_CORRUPT_FONT
+
 /* Define the downloaded character data formats. */
 typedef enum {
   pccd_bitmap = 4,
@@ -250,7 +254,12 @@
             has_checksum = true;
             break;
           default:
-            return_error(gs_error_invalidfont);
+#ifdef IGNORE_CORRUPT_FONT
+              return 0;
+#else
+              return_error(gs_error_invalidfont);
+#endif
+
           }
 
         /* Fonts should include a final byte that makes the sum of the



More information about the gs-cvs mailing list