Path: utzoo!attcan!uunet!mcsun!hp4nl!dutrun!duteca!dutepp1!alfred From: alfred@dutepp1.tudelft.nl (Alfred Kayser) Newsgroups: comp.lang.postscript Subject: Re: path to calligraphy penstroke Message-ID: <.644234162@dutepp1> Date: 1 Jun 90 09:56:02 GMT References: <12041@june.cs.washington.edu> <1990May30.020154.7416@athena.mit.edu> Sender: news@duteca Lines: 32 mar@athena.mit.edu (Mark A. Rosenstein) writes: >I actually wrote a routine at one point to do calligraphy. There are >three operators I defined: penwidth which takes 1 argument and sets >the width of the nib, penangle which takes 1 argument and sets the >angle of the nib, and penstroke, which strokes the current path with a >pen that has the last specified angle and width. Like stroke, it does >a newpath after it has produced its line. Here are the routines and a >sample usage. ...penstroke routine deleted... BUT here comes the problem: >1 inch 4 inch moveto >/Helvetica findfont 1 inch scalefont setfont >(TESTING) false charpath penstroke According to my laserprinter (TI2115) and the PS red book: (page 192) If was used to construct any portion of the current path, is not allowed; its execution will produce an 'invalidaccess' error. Who can invent a routine alike, but working with fonts? May be something can be done with defining a new font on basis of an existing font. Alfred. (This is not a flame, just an error report) -- -- Ir. Alfred Kayser. PACS, OS/2, TCP/IP. --- Email: AKayser@et.tudelft.nl -- -- CARDIT, Delft University of Technology ------------ Tel: (31)-15-786179 -- -- P.O.Box 5031, 2600 GA Delft, The Netherlands ------ Fax: (31)-15-784898 --