Fonction painter:stringwidth returns two numbers representing the total displacement (dx,dy) that would be applied to the current point by expression show(string).

See also: PostScript operator stringwidth.