[gnu.ghostscript.bug] Another bug of GhostScript interpreter

aida@CSL.SRI.COM (Hitoshi Aida) (05/01/89)

The font cache of the GhostScript interpreter misplaces the cached image
if more than one font is used and if the size of them are identical.
Here is my fix of the problem:

*** zfont.c	Fri Apr 28 11:29:27 1989
--- zfont.c.org	Fri Feb 24 00:24:09 1989
***************
*** 48,57 ****
  extern ref dstack[];
  #define systemdict (dstack[0])
  
- /* 04/28/89 H.AIDA */
- static long unique_id;
- #define new_unique_id() (unique_id++)
- 
  /* Initialize the font operators */
  void
  zfont_init()
--- 48,53 ----
***************
*** 112,118 ****
  		pfont->ymin = bbox[1];
  		pfont->xmax = bbox[2];
  		pfont->ymax = bbox[3];
- 		pfont->unique_id = new_unique_id();	/* 04/28/89 H.AIDA */
  		pfont->build_char_proc = gs_no_build_char_proc;
  	}
  	else
--- 108,113 ----

Hitoshi AIDA (aida@csl.sri.com)
Computer Science Laboratory, SRI International