Dabo.ui.fontMetricFromFont

From Dabo Wiki
Revision as of 16:04, 14 May 2020 by Ed (talk | contribs) (Created page with "== Signature: == <syntaxhighlight lang="python"> dabo.ui.fontMetricFromFont(txt, font) </syntaxhighlight> == Description: == Much like dabo.ui.fontMetric(), except that...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.