FontsetSimple

class FontsetSimple(**properties: Any)

Superclasses: Fontset, Object

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.

Constructors

class FontsetSimple
classmethod new(language: Language) FontsetSimple

Creates a new PangoFontsetSimple for the given language.

Parameters:

language – a PangoLanguage tag

Methods

class FontsetSimple
append(font: Font) None

Adds a font to the fontset.

The fontset takes ownership of font.

Parameters:

font – a PangoFont.

size() int

Returns the number of fonts in the fontset.