Gets the graphic dimensions of a string when it is drawn into the drawing area.
The string argument is the text string to measure. The w and h boxes are filled with the total width and height respectively. The descent box is filled with the dimension from the baseline of the font to the bottom of the descender, and the externalLeading box is filled with any extra vertical space added to the font by the font designer (usually this is zero).
The font specifies the font to use in measuring the text; if it is null, the current font of the drawing area is used. (See also set-font.)