Xref: utzoo comp.windows.x:27027 comp.lang.postscript:6114 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!sics.se!sics.se!jw From: jw@sics.se (Johan Widen) Newsgroups: comp.windows.x,comp.lang.postscript Subject: Re: ralpage-1.5.3.2 alpha release (a fix for one of the known bugs) Message-ID: <1990Sep16.214121.21469@sics.se> Date: 16 Sep 90 21:41:21 GMT References: <1990Sep16.164855.15925@sics.se> Sender: news@sics.se Distribution: comp Organization: Swedish Institute of Computer Science, Kista Lines: 49 In-Reply-To: jw@sics.se's message of Sun, 16 Sep 90 16:48:55 GMT In the release notes I said that there was a problem with the character positioning when displaying X Window fonts. The following patch appears to fix this. I have also put the patch on our ftp area, in a separate file. There is a second problem with the X Window fonts. The problem is that the encoding of the X Window fonts is not the same as the encoding of the postscript fonts. Furthermore, there are characters in the postscript fonts that are not in the X Window fonts and vice versa. What would be a good way of dealing with this? *** /tmp/,RCSt1a06364 Sun Sep 16 23:28:41 1990 --- xcache.c Sun Sep 16 23:16:43 1990 *************** *** 38,43 **** --- 38,44 ---- FontInfoRec theFont; CharInfoRec theCharInfo [256]; int nglyphs, i, fd; + float save_tx, save_ty; Vector sidev, exv, met, GetMetrics (); Object metricsDict; extern Object Metrics, FontBBox; *************** *** 85,90 **** --- 86,94 ---- } VOID fclose (fp); + save_tx = gstate->CTM.tx; + save_ty = gstate->CTM.ty; + for (i = theFont.firstCol; i <= theFont.lastCol; i++) { struct hardware *newdev; *************** *** 113,118 **** --- 117,124 ---- NewDevicePoint (width, height), ROP_SOURCE); DestroyHardware (newdev); + gstate->CTM.tx = save_tx; + gstate->CTM.ty = save_ty; } Free (bits); VOID GRestore (); -- Johan Widen SICS, PO Box 1263, S-164 28 KISTA, SWEDEN Internet: jw@sics.se Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30