Pango.Fontset¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Pango.Fontset(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
A
PangoFontset
represents a set ofPangoFont
to use when rendering text.A
PangoFontset
is the result of resolving aPangoFontDescription
against a particularPangoContext
. 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:
func (
Pango.FontsetForeachFunc
) – Callback functiondata (
object
orNone
) – data to pass to the callback function
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:
Returns the font in the fontset that contains the best glyph for a Unicode character.
- get_metrics()[source]¶
- Returns:
a
PangoFontMetrics
object- Return type:
Get overall metric information for the fonts in the fontset.
- do_foreach(func, data) virtual¶
- Parameters:
func (
Pango.FontsetForeachFunc
) – Callback functiondata (
object
orNone
) – data to pass to the callback function
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:
Returns the font in the fontset that contains the best glyph for a Unicode character.
- do_get_language() virtual¶
- Return type:
a function to get the language of the fontset.
- do_get_metrics() virtual¶
- Returns:
a
PangoFontMetrics
object- Return type:
Get overall metric information for the fonts in the fontset.