The
port-string-width
function returns the
width
in pixels of
string
when drawn to
port
. The font used is the one currently in the port's graphics state.
Note: To compute the horizontal extents of each successive character in a string for a given port or font, use compute-char-extents.