[gs-cvs] rev 7733 - in trunk/gs: doc src

alexcher at ghostscript.com alexcher at ghostscript.com
Thu Feb 22 07:39:16 PST 2007


Author: alexcher
Date: 2007-02-22 07:39:15 -0800 (Thu, 22 Feb 2007)
New Revision: 7733

Modified:
   trunk/gs/doc/pscet_status.txt
   trunk/gs/src/gsfont.c
Log:
Set bottom limit of 100000 on the font cache size in the compatibility
mode to match Adobe interpreters.  Partial fox for CET 27-07-01.

DIFFERENCES:
No other CET differences or differences in comparefiles.


Modified: trunk/gs/doc/pscet_status.txt
===================================================================
--- trunk/gs/doc/pscet_status.txt	2007-02-22 03:10:49 UTC (rev 7732)
+++ trunk/gs/doc/pscet_status.txt	2007-02-22 15:39:15 UTC (rev 7733)
@@ -4730,12 +4730,10 @@
 
 27-06-2  OK	
 
-27-07-1  DIFF	Partial fix for 27-07, rev. 7160 - Alex
-                The following observed Adobe quirks are not reproduced.
-                - lower limit of 100000 on MaxFontCache system parameter
-                - alternate use of --setcacheparams-- and /setcacheparams
-                  in the errors.
-                 assign alex
+27-07-1  AOK 	Fixed by rev. 7733 - Alex
+                Alternate use of --setcacheparams-- and /setcacheparams in error
+                messages is an obvious bug in Adobe interpreters that we won't
+                reproduce.
 
 27-07-2  OK	
 

Modified: trunk/gs/src/gsfont.c
===================================================================
--- trunk/gs/src/gsfont.c	2007-02-22 03:10:49 UTC (rev 7732)
+++ trunk/gs/src/gsfont.c	2007-02-22 15:39:15 UTC (rev 7733)
@@ -40,6 +40,8 @@
 #define cmax_SMALL 500		/* cmax - # of cached chars */
 #define blimit_SMALL 100	/* blimit/upper - max size of a single cached char */
 
+extern bool CPSI_mode;
+
 /* Define a default procedure vector for fonts. */
 const gs_font_procs gs_font_procs_default = {
     gs_no_define_font,		/* (actually a default) */
@@ -630,14 +632,16 @@
 /* setcacheparams */
 int
 gs_setcachesize(gs_font_dir * pdir, uint size)
-{				/* This doesn't delete anything from the cache yet. */
+{   /* This doesn't delete anything from the cache yet. */
+    if (CPSI_mode && size < 100000)                  /* for CET 27-07 */
+        size = 100000;
     pdir->ccache.bmax = size;
     return 0;
 }
 int
 gs_setcachelower(gs_font_dir * pdir, uint size)
 {
-    pdir->ccache.lower = ((int)size < 0) ? 0 : size; /* ?: for CET 27-07 */;
+    pdir->ccache.lower = ((int)size < 0) ? 0 : size; /* ?: for CET 27-07 */
     return 0;
 }
 int



More information about the gs-cvs mailing list