wx.FontMetrics¶
Simple collection of various font metrics.
This object is returned by wx.DC.GetFontMetrics
.
Added in version 2.9.2.
Class Hierarchy¶
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¶
- class wx.FontMetrics(object)¶
Possible constructors:
FontMetrics() -> None
Simple collection of various font metrics.
Methods¶
- __init__(self)¶
Constructor initializes all fields to 0.
- Return type:
None
Properties¶
- 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.