Pango.FontsetSimple

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

Subclasses:

None

Methods

Inherited:

Pango.Fontset (3), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (language)

append (font)

size ()

Virtual Methods

Inherited:

Pango.Fontset (4), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Pango.FontsetSimple(**kwargs)
Bases:

Pango.Fontset

Abstract:

No

Structure:

Pango.FontsetSimpleClass

PangoFontsetSimple is a implementation of the abstract PangoFontset base class as an array of fonts.

When creating a PangoFontsetSimple, you have to provide the array of fonts that make up the fontset.

classmethod new(language)[source]
Parameters:

language (Pango.Language) – a PangoLanguage tag

Returns:

the newly allocated PangoFontsetSimple

Return type:

Pango.FontsetSimple

Creates a new PangoFontsetSimple for the given language.

append(font)[source]
Parameters:

font (Pango.Font) – a PangoFont.

Adds a font to the fontset.

The fontset takes ownership of font.

size()[source]
Returns:

the size of self

Return type:

int

Returns the number of fonts in the fontset.