Dabo.ui.fontMetricFromFont

From Dabo Wiki
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.