[gs-cvs] rev 7746 - in trunk/gs: doc src
alexcher at ghostscript.com
alexcher at ghostscript.com
Sun Feb 25 12:46:04 PST 2007
Author: alexcher
Date: 2007-02-25 12:46:03 -0800 (Sun, 25 Feb 2007)
New Revision: 7746
Modified:
trunk/gs/doc/pscet_status.txt
trunk/gs/src/gsfont.c
Log:
Set upper font cache limit to 1e8 bytes in CPSI compatibility mode.
Fix CET 27-02-01.
DIFFERENCES:
No other CET or comparefiles differences.
Modified: trunk/gs/doc/pscet_status.txt
===================================================================
--- trunk/gs/doc/pscet_status.txt 2007-02-25 19:26:44 UTC (rev 7745)
+++ trunk/gs/doc/pscet_status.txt 2007-02-25 20:46:03 UTC (rev 7746)
@@ -4677,9 +4677,8 @@
27-01-2 OK
-27-02-1 DIFF Device Dependent : GS has a reasonable cache limit.
- Adobe has upper cache limit of 1e8 bytes. GS has no limit.
- assign: Ray.
+27-02-1 OK Adobe has upper cache limit of 1e8 bytes.
+ Rev. 7746 does the same in CPSI compatibility mode. - Alex
27-02-2 OK
Modified: trunk/gs/src/gsfont.c
===================================================================
--- trunk/gs/src/gsfont.c 2007-02-25 19:26:44 UTC (rev 7745)
+++ trunk/gs/src/gsfont.c 2007-02-25 20:46:03 UTC (rev 7746)
@@ -633,8 +633,12 @@
int
gs_setcachesize(gs_font_dir * pdir, uint size)
{ /* This doesn't delete anything from the cache yet. */
- if (CPSI_mode && size < 100000) /* for CET 27-07 */
- size = 100000;
+ if (CPSI_mode) {
+ if (size < 100000) /* for CET 27-07 */
+ size = 100000;
+ else if (size > 100000000) /* for CET 27-02-01 */
+ size = 100000000;
+ }
pdir->ccache.bmax = size;
return 0;
}
More information about the gs-cvs
mailing list