17 Aug 2004
CS 5244: Multimedia
31/44
A simple Postscript example
¡A method to place some text down the left margin of the a page.
¡
¡You can use this after the marker for the beginning of a page.
¡
¡gsave % save graphics state on stack
¡90 rotate % rotate 90 degrees
¡100 .55 -72 mul moveto % go to coords 100, (.55*-72)
¡/Times-Roman findfont % Get the font (set of operators) Times-Roman
¡10 scalefont % set the font size
¡setfont % Use the specified font
¡0.3 setgray % Change the color to gray
¡(PUT NOTE HERE) show % call the individual operators P,U,T …
¡ % to draw letters
¡grestore % restore the graphics state
¡