1.7 <PangoFontset>

Class: <PangoFontset>

It derives from <GObject>.

A <PangoFontset> represents a set of <PangoFont> to use when rendering text.

A <PangoFontset> is the result of resolving a <PangoFontDescription> against a particular <PangoContext>. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.

Fields

parent-instance

Procedures

Method: fontset:foreach self func
Method: foreach self func

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

If func returns #t, that stops the iteration.

self

Passed: a <PangoFontset>.

a <PangoFontset>

func

Passed: a procedure.

Callback function

See PangoFontsetForeachFunc for how it is called.

data

Not passed: guile-gi supplies it.

data to pass to the callback function

Method: fontset:get-font self wc ⇒ %return
Method: get-font self wc ⇒ %return

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

self

Passed: a <PangoFontset>.

a <PangoFontset>

wc

Passed: an unsigned 32-bit integer.

a Unicode character

%return

Returned: a <PangoFont>.

a <PangoFont>

Method: fontset:get-metrics self ⇒ %return
Method: get-metrics self ⇒ %return

Get overall metric information for the fonts in the fontset.

self

Passed: a <PangoFontset>.

a <PangoFontset>

%return

Returned: a <PangoFontMetrics>.

a <PangoFontMetrics> object

Virtual methods

Virtual method: fontset:do-foreach implementor self func

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

If func returns #t, that stops the iteration.

To override it in a new class, give register-type #:vfuncs `((foreach . ,procedure)). The procedure is called as (procedure self func data).

implementor

Passed: the class whose implementation to call: <PangoFontset>, or a class that derives from it, or its GType number.

self

Passed: a <PangoFontset>.

a <PangoFontset>

func

Passed: a procedure.

Callback function

See PangoFontsetForeachFunc for how it is called.

data

Not passed: guile-gi supplies it.

data to pass to the callback function

Virtual method: fontset:do-get-font implementor self wc ⇒ %return

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

To override it in a new class, give register-type #:vfuncs `((get-font . ,procedure)). The procedure is called as (procedure self wc) ⇒ %return.

implementor

Passed: the class whose implementation to call: <PangoFontset>, or a class that derives from it, or its GType number.

self

Passed: a <PangoFontset>.

a <PangoFontset>

wc

Passed: an unsigned 32-bit integer.

a Unicode character

%return

Returned: a <PangoFont>.

a <PangoFont>

Virtual method: fontset:do-get-language implementor self ⇒ %return

a function to get the language of the fontset.

To override it in a new class, give register-type #:vfuncs `((get-language . ,procedure)). The procedure is called as (procedure self) ⇒ %return.

implementor

Passed: the class whose implementation to call: <PangoFontset>, or a class that derives from it, or its GType number.

self

Passed: a <PangoFontset>.

%return

Returned: a <PangoLanguage>.

Virtual method: fontset:do-get-metrics implementor self ⇒ %return

Get overall metric information for the fonts in the fontset.

To override it in a new class, give register-type #:vfuncs `((get-metrics . ,procedure)). The procedure is called as (procedure self) ⇒ %return.

implementor

Passed: the class whose implementation to call: <PangoFontset>, or a class that derives from it, or its GType number.

self

Passed: a <PangoFontset>.

a <PangoFontset>

%return

Returned: a <PangoFontMetrics>.

a <PangoFontMetrics> object