Get the width of a string
$str
Gives the width of the string in pixels, using the current font and font size.
str
The string.
Returns the line width, as a float.