Returns the width of a string drawn to a given port in pixels.
Signature
port-string-width portstring => width
Arguments
port
A graphics port
string
A string
Values
width
An integer
Description
Theport-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.