Edit history

Edit: -1 of 1
Time: 2007-01-20 21:22:43
Note: /dabosite/wiki/DaboUiFontMetricFromDrawObject/reparent

changed:
-
Signature:

 <pycode>dabo.ui.fontMetricFromDrawObject(obj)</pycode>

Description:

 Given a drawn text object, returns the width and height of the text. See the section on DrawObjects for information on the drawText() function.

Returns:

 A 2-tuple containing the (width, height) of the specified drawn object.

Comments:

 If you're using the drawing primitives to create text, this method will take the drawn object and return the size of the text as it will be drawn.