Skip to content

Pango.FontsetSimple

class — extends Fontset

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

new

@classmethod
def new(cls, language: Language) -> FontsetSimple

Creates a new PangoFontsetSimple for the given language.

Parameters:

  • language — a PangoLanguage tag

Methods

append

def append(self, font: Font) -> None

Adds a font to the fontset.

The fontset takes ownership of font.

Parameters:

  • font — a PangoFont.

size

def size(self) -> int

Returns the number of fonts in the fontset.