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 Pango.Fontset represents a set of Pango.Font to use when rendering text. It is the result of resolving a Pango.FontDescription against a particular Pango.Context. 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 Pango.Font. The caller must call GObject.Object.unref when finished with the font.
Return type:Pango.Font

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

get_metrics()[source]
Returns:a Pango.FontMetrics object. The caller must call Pango.FontMetrics.unref() when finished using the 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 Pango.Font. The caller must call GObject.Object.unref when finished with the font.
Return type:Pango.Font

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

do_get_language() virtual
Return type:Pango.Language
do_get_metrics() virtual
Returns:a Pango.FontMetrics object. The caller must call Pango.FontMetrics.unref() when finished using the object.
Return type:Pango.FontMetrics

Get overall metric information for the fonts in the fontset.