home *** CD-ROM | disk | FTP | other *** search
NeXT TypedStream Data | 1995-06-12 | 1.8 KB | 50 lines |
- streamtyped
- % trf takes x and y coords and
- % transforms them
- % this will be used by pathforall
- % to transform all coords of the
- % charpath (see below)
- % you can use the pathforall
- % given below for other
- % paths as well
- /trf { /y exch def /x exch def
- x y y 150 sub x 200 sub 2 exp .0002 mul mul add } def
- /curvedTXT {
- nctrl 1 ge {
- ctrl 0 get ctrl 1 get moveto
- font findfont fontsize scalefont setfont
- text false charpath
- /anf true def
- { anf { /anf false def newpath } if trf moveto } { trf lineto } { /y3 exch def /x3 exch def /y2 exch def /x2 exch def /y1 exch def /x1 exch def
- x1 y1 trf
- x2 y2 trf
- x3 y3 trf curveto } { closepath } pathforall
- } if
- /font (Helvetica) def
- /fontsize 24 def
- /text () def
- } def
- /curvedTXTcontrol { gencontrol } def
- PencilGraphic
- Object
- *****ffffffffffffcccci
- curvedTXT
- drawFS
- stroke
- ;/text (Move me!) def /fontsize 32 def /font (Helvetica) def
- PencilText
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
- \margl40
- \margr40
- \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b\i\ulnone\fs24\fc0\cf0 Select the text "Move me" \
- and move it by dragging\
- its controlpoint!
- {\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
- \margl40
- \margr40
- \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f0\b0\i0\ulnone\fs18\fc0\cf0 (Select Document>Custom PS...\
- to have a look at the PostScript code)
- draw3DShadow
- verlaufHOR
- =/text (pathforall) def /fontsize 32 def /font (Helvetica) def
-