Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!acorn!moncam!loki From: loki@moncam.uucp (Never Kid A Kidder) Newsgroups: comp.lang.postscript Subject: currentpoint != last-point-in-path after charpath??? Message-ID: Date: 1 Mar 90 15:40:35 GMT Sender: loki@moncam.co.uk Distribution: comp Organization: (n) The process of becoming an organ. Lines: 50 Sorry if this has been spotted before. I'm running Adobe PostScript V42.2 on an Apple LaserWriter, and I've just done a simple test; /Courier findfont 100 scalefont setfont 100 100 moveto (a) false charpath currentpoint = = 300 300 lineto stroke showpage Now the %output is 100.0 160.0 but the printed output (sorry, can't get it into this buffer...) indicates that the last point was in fact at the top lefthand point of the `a' (presumably the last point in the character data). I've never read of this discrepancy as a feature, but I noticed that Adobe's implementation of their `boldening' does a charpath (each character individually) followed by an explicit `currentpoint moveto', so it looks like they're aware of it. You don't notice it if you just charpath a string and then stroke it. You also don't notice it if you do something like (a) false charpath (b) false charpath (c) false charpath stroke showpage so presumably Adobe's charpath has an implicit `currentpoint moveto' at the beginning of it. If it hasn't been commented on before, has anyone else noticed it? Is it the version I'm running? (Note that `fixing' it so that it *does* do the moveto would not break Adobe's boldening code, for instance, since their explicit moveto would just overwrite the one there, but of course making the currentpoint the last point in the character data would have amusing consequences, notably to have the characters climbing off the page...) -- Harry Fearnhamm, ,---.'\ EMAIL: loki@moncam.uucp Monotype ADG, (, /@ )/ ...!ukc!acorn!moncam!loki Science Park, /( _/ ') VOICE: +44 (0)223 420018 Cambridge, \,`---' FAX: +44 (0)223 420911 CB4 4FQ, DISCLAIMER: Nothing is True. ENGLAND. Everything is Permitted.