show Characters

To paint a string of characters, use the show command, which requires a string argument, and expects the font face and size to have been selected:

/Helvetica 10 selectfont
(any string of text characters) show

The show command creates a path of its own. Look what happens when you combine lines with text:

%!PS
0 0 moveto 306 396 lineto
/Helvetica 10 selectfont
(this adds to the path and moves the current point) show
612 792 lineto
stroke
showpage % END OF PROGRAM

show Characters

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s