FontsetSimple

pango.fontset_simple.FontsetSimple is a implementation of the abstract pango.fontset.Fontset base class as an array of fonts.

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

Constructors

this
this(pango.language.Language language)

Creates a new pango.fontset_simple.FontsetSimple for the given language.

Members

Functions

append
void append(pango.font.Font font)

Adds a font to the fontset.

size
int size()

Returns the number of fonts in the fontset.

Inherited Members

From Fontset

foreach_
void foreach_(pango.types.FontsetForeachFunc func)

Iterates through all the fonts in a fontset, calling func for each one.

getFont
pango.font.Font getFont(uint wc)

Returns the font in the fontset that contains the best glyph for a Unicode character.

getMetrics
pango.font_metrics.FontMetrics getMetrics()

Get overall metric information for the fonts in the fontset.