Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!CSL.SRI.COM!aida From: aida@CSL.SRI.COM (Hitoshi Aida) Newsgroups: gnu.ghostscript.bug Subject: Another bug of GhostScript interpreter Message-ID: <8905011603.AA08884@porthos.csl.sri.com> Date: 1 May 89 16:03:54 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 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