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