[comp.windows.news] Problems with canvas paths

johng@ecrcvax.UUCP (John Gregor) (09/07/88)

AAaaaarghh!!
(There, I feel better now.)

I'm being bitten by a 'feature' in NeWS 1.1.  It seems that the path
returned by clippath can't be used by any of the path operators
(stroke, pathforall, pathforallvec, etc.).  Fill seems to work ok.  It
seems that sun is already aware of the problem because util.ps has a
hack in strokecanvas to get around it (only for rectangular canvases
though).
                                               
Question #1: Can anybody with source (or at Sun) explain why this 
	     irregularity occurs?

Question #2: The reason I need this is that I want to resize, rotate,
	     and otherwise fondle the shape of canvases.  I'd really
	     rather not have to keep the information hidden elsewhere.
	     Any ideas on how to do this? (Yes, I know about reshapecanvas,
	     I just need to know the old path first.)

Feature #2: It seems that doing a currentpath, changing canvases, then doing
	    a setpath doesn't work.  But this could have been yet another
	    manifestation of the same problem.

[mild flame]
Several people have done postscript interpreters for X singlehandedly.
With working fonts (try printing rotated text in NeWS, grrrrr).  Why
can't an entire project team at Sun get this stuff right?  Sigh...

-- 

John Gregor                                       johng%ecrcvax.UUCP@pyramid.COM