• getTextDimensions ?-float? ?-font dict? ?-width num? string
Return the dimensions of the enclosing box for the string drawn with the
given options. The options have the following meaning:
The result is a list of two values corresponding to the width and height
of the bounding rectangle.
- the -float option tells to return the dimensions as floating numbers
rather than integers;
- the -font option specifies a
font. The default is to use the system font at size 10. See the file Alpha Fonts to know how fonts are specified;
- the -width option measures the
text as if it were wrapped in a box of the specified width.