home *** CD-ROM | disk | FTP | other *** search
- % BigLine.ps
- % fills in entire FrameMaker textrect with a given string, outlined
- %
- % args in:
- % 1 = string to print in parenthesis ie. (MYSTRING)
- % 2 = font desired: /font ie. /Times-Roman
- % 3 = mode code where /W = fill width, /H = fill height, /B = fill both
- % 4 = rotate value from -180 to +180
- % where pos. = counterclockwise, neg = clockwise
- % 5 = starting corner: /LL /LR /UR /UL where LL = lower left, etc.
- % 6 = thickness of line
- /thick exch def
- /start exch def
- /rotval exch def
- /mode exch def
- findfont /infont exch def
- /printme exch def
- /hframe exch def % left on stack by Maker
- /wframe exch def % ditto
- 0 0 moveto
- /scaler 12 def % avoid PS rounding problems
- infont scaler scalefont setfont
- /wfont wframe printme stringwidth
- pop div scaler mul def
- /hfont hframe (X) false charpath flattenpath
- pathbbox /temp exch def pop pop pop temp
- div scaler mul def
- mode /W eq {/hfont wfont def} if
- mode /H eq {/wfont hfont def} if
- infont [wfont 0 0 hfont 0 0] makefont setfont
- newpath 0 0 moveto
- start /LR eq {wframe 0 moveto} if
- start /UL eq {0 hframe moveto} if
- start /UR eq {wframe hframe moveto} if
- rotval rotate
- thick setlinewidth
- printme false charpath stroke
-