Difference between revisions of "Dabo.ui.fontMetricFromFont"

From Dabo Wiki
Jump to: navigation, search
(Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.fontMetricFromFont(txt, font) </syntaxhighlight> == Description: == Much like dabo.ui.fontMetric(), except that...")
 
(No difference)

Latest revision as of 16:04, 14 May 2020

Signature:

dabo.ui.fontMetricFromFont(txt, font)

Description:

Much like dabo.ui.fontMetric(), except that you pass a single wx.Font or dabo.ui.dFont instance instead of seperate font qualities.

Returns:

A 2-tuple containing the (width, height) of the text in the specified font.

Comments:

Rarely used by programmers. Mostly used internally by the framework.