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) | 
|---|
Class Details¶
- 
class Pango.Fontset(**kwargs)¶
- Bases: - GObject.Object- Abstract: - Yes - Structure: - Pango.FontsetClass- A - Pango.Fontsetrepresents a set of- Pango.Fontto use when rendering text. It is the result of resolving a- Pango.FontDescriptionagainst 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: - func (Pango.FontsetForeachFunc) – Callback function
- data (objectorNone) – 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. 
- func (
 - 
get_font(wc)[source]¶
- Parameters: - wc ( - int) – a Unicode character- Returns: - a - Pango.Font. The caller must call- GObject.Object.unrefwhen 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.FontMetricsobject. 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: - func (Pango.FontsetForeachFunc) – Callback function
- data (objectorNone) – 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. 
- func (
 - 
do_get_font(wc) virtual¶
- Parameters: - wc ( - int) – a Unicode character- Returns: - a - Pango.Font. The caller must call- GObject.Object.unrefwhen 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.FontMetricsobject. 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. 
 
-