beautypg.com

Stringwidth – AMT Datasouth PAL User Manual

Page 191

background image

185

stringwidth

The following PAL procedure will perform the same operation as the PAL show operator,
however the procedure will automatically reverse-justify the text against the current point. For
Roman text, reverse-justification indicates right-justification.

/RShow {
dup stringwidth
exch neg exch neg rmoveto
show
} bind def

The RShow procedure has the same usage as the show operator and CShow procedure.

ShowStr

RShow

For Roman text, the RShow procedure draws ShowStr with the right bottom corner at the current
point.