Difference between revisions of "Dabo.ui.fontMetricFromDrawObject"
(Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.fontMetricFromDrawObject(obj) </syntaxhighlight> == Description: == Given a drawn text object, returns the width and...")
Latest revision as of 16:05, 14 May 2020
Given a drawn text object, returns the width and height of the text. See the section on DrawObjects for information on the
A 2-tuple containing the (width, height) of the specified drawn object.
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.