get-text-extent in dc<%>

Gets the dimensions of a string drawn into this device context. The result is four real numbers:

The returned width and height define a rectangle is that guaranteed to contain the text string when it is drawn, but the fit is not necessarily tight. Some undefined number of pixels on the left, right, top, and bottom of the drawn string may be ``whitespace,'' depending on the whims of the font designer and the platform-specific font-scaling mechanism.

Unlike most methods, this method can be called for a bitmap-dc% object without a bitmap installed.