Pango.Fontset

g GObject.Object GObject.Object Pango.Fontset Pango.Fontset GObject.Object->Pango.Fontset

Subclasses:

Pango.FontsetSimple

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

foreach (func, *data)

get_font (wc)

get_metrics ()

Virtual Methods

Inherited:

GObject.Object (7)

do_foreach (func, data)

do_get_font (wc)

do_get_language ()

do_get_metrics ()

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Pango.Fontset(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Pango.FontsetClass

A PangoFontset represents a set of PangoFont to use when rendering text.

A PangoFontset is the result of resolving a PangoFontDescription against a particular PangoContext. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.

foreach(func, *data)[source]
Parameters:

Iterates through all the fonts in a fontset, calling func for each one.

If func returns True, that stops the iteration.

New in version 1.4.

get_font(wc)[source]
Parameters:

wc (int) – a Unicode character

Returns:

a PangoFont

Return type:

Pango.Font

Returns the font in the fontset that contains the best glyph for a Unicode character.

get_metrics()[source]
Returns:

a PangoFontMetrics object

Return type:

Pango.FontMetrics

Get overall metric information for the fonts in the fontset.

do_foreach(func, data) virtual
Parameters:

Iterates through all the fonts in a fontset, calling func for each one.

If func returns True, that stops the iteration.

New in version 1.4.

do_get_font(wc) virtual
Parameters:

wc (int) – a Unicode character

Returns:

a PangoFont

Return type:

Pango.Font

Returns the font in the fontset that contains the best glyph for a Unicode character.

do_get_language() virtual
Return type:

Pango.Language

do_get_metrics() virtual
Returns:

a PangoFontMetrics object

Return type:

Pango.FontMetrics

Get overall metric information for the fonts in the fontset.