phoenix_title wx.FontMetrics

Simple collection of various font metrics.

This object is returned by wx.DC.GetFontMetrics .

New in version 2.9.2.


class_hierarchy Class Hierarchy

Inheritance diagram for class FontMetrics:

method_summary Methods Summary

__init__

Constructor initializes all fields to 0.


property_summary Properties Summary

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.


api Class API

class wx.FontMetrics(object)

Possible constructors:

FontMetrics()

Simple collection of various font metrics.


Methods

__init__(self)

Constructor initializes all fields to 0.


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.