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(void* ptr, Flag!"Take" take)
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.

self
FontsetSimple self()

Returns this, for use in with statements.

size
int size()

Returns the number of fonts in the fontset.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From Fontset

getGType
GType getGType()
gType
GType gType [@property getter]
self
Fontset self()

Returns this, for use in with statements.

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.