Pango.Fontset - Classes - Pango 1.0 (original) (raw)
g GObject.Object GObject.Object Pango.Fontset Pango.Fontset GObject.Object->Pango.Fontset
Subclasses:
Methods¶
Inherited:
Structs:
foreach (func, *data) |
---|
get_font (wc) |
get_metrics () |
Virtual Methods¶
Inherited:
do_foreach (func, data) |
---|
do_get_font (wc) |
do_get_language () |
do_get_metrics () |
Properties¶
None
Signals¶
Inherited:
Fields¶
Inherited:
Name | Type | Access | Description |
---|---|---|---|
parent_instance | GObject.Object | r |
Class Details¶
class Pango.Fontset(**kwargs)¶
Bases:
Abstract:
Yes
Structure:
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.
Parameters:
- func (Pango.FontsetForeachFunc) – Callback function
- data (object or None) – 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.
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.
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 function
- data (object or None) – 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.