Don't forget the showpage at the end.
"%" is the PostScript comment character. PostScript ignores everything from the "%" to the end of line. "%" does not indicate a comment when it occurs inside of parentheses.
(%) show % this line images a "%" char
Remember that findfont, scalefont and setfont should be used as a group, trying to use only some of the three doesn't do what you want.
We choose size 18 because we wanted 1/4" letters. We have 72 units per inch, and 1/4 of 72 is 18.
Text does not need to be imaged in any particular order, we could just as easily imaged the small type before the large type.
%! % Solution to exercise 1 /Helvetica findfont 18 scalefont setfont 300 754 moveto (Michael E. Fryd) show /Helvetica-Bold findfont 300 scalefont setfont 72 144 moveto (Large Type) show showpage
return |