wx.FontMetrics¶Simple collection of various font metrics.
This object is returned by wx.DC.GetFontMetrics .
New in version 2.9.2.
Class Hierarchy¶
Inheritance diagram for class FontMetrics:

Methods Summary¶Constructor initializes all fields to 0. |
Properties Summary¶A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Class API¶wx.FontMetrics(object)¶Possible constructors:
FontMetrics()
Simple collection of various font metrics.
__init__(self)¶Constructor initializes all fields to 0.
ascent¶A public C++ attribute of type int. Part of the height above the baseline.
averageWidth¶A public C++ attribute of type int. Average font width, a.k.a. “x-width”.
descent¶A public C++ attribute of type int. Part of the height below the baseline.
externalLeading¶A public C++ attribute of type int. Inter-line spacing.
height¶A public C++ attribute of type int. Total character height.
internalLeading¶A public C++ attribute of type int. Intra-line spacing.