1.4 <PangoFontFace>

Class: <PangoFontFace>

It derives from <GObject>.

A <PangoFontFace> is used to represent a group of fonts with the same family, slant, weight, and width, but varying sizes.

Fields

parent-instance

Procedures

Method: font-face:describe self ⇒ %return
Method: describe self ⇒ %return

Returns a font description that matches the face.

The resulting font description will have the family, style, variant, weight and stretch of the face, but its size field will be unset.

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a <PangoFontDescription>.

a newly-created <PangoFontDescription> structure holding the description of the face. Use font-description:free to free the result.

Method: font-face:get-face-name self ⇒ %return
Method: get-face-name self ⇒ %return

Gets a name representing the style of this face.

Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).

self

Passed: a <PangoFontFace>.

a <PangoFontFace>.

%return

Returned: a string.

the face name for the face. This string is owned by the face object and must not be modified or freed.

Method: font-face:get-family self ⇒ %return
Method: get-family self ⇒ %return

Gets the <PangoFontFamily> that self belongs to.

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a <PangoFontFamily>.

the <PangoFontFamily>

Method: font-face:is-synthesized? self ⇒ %return
Method: is-synthesized? self ⇒ %return

Returns whether a <PangoFontFace> is synthesized.

This will be the case if the underlying font rendering engine creates this face from another face, by shearing, emboldening, lightening or modifying it in some other way.

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a boolean.

whether self is synthesized

Method: font-face:list-sizes self ⇒ sizes
Method: list-sizes self ⇒ sizes

List the available sizes for a font.

This is only applicable to bitmap fonts. For scalable fonts, stores #f at the location pointed to by sizes and 0 at the location pointed to by n-sizes. The sizes returned are in Pango units and are sorted in ascending order.

self

Passed: a <PangoFontFace>.

a <PangoFontFace>.

sizes

Returned: a s32vector, or #f.

location to store a pointer to an array of int. This array should be freed with byte-array:free.

n-sizes

Not returned: it is the length of sizes.

location to store the number of elements in sizes

Virtual methods

Virtual method: font-face:do-describe implementor self ⇒ %return

Returns a font description that matches the face.

The resulting font description will have the family, style, variant, weight and stretch of the face, but its size field will be unset.

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

implementor

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

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a <PangoFontDescription>.

a newly-created <PangoFontDescription> structure holding the description of the face. Use font-description:free to free the result.

Virtual method: font-face:do-get-face-name implementor self ⇒ %return

Gets a name representing the style of this face.

Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).

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

implementor

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

self

Passed: a <PangoFontFace>.

a <PangoFontFace>.

%return

Returned: a string.

the face name for the face. This string is owned by the face object and must not be modified or freed.

Virtual method: font-face:do-get-family implementor self ⇒ %return

Gets the <PangoFontFamily> that self belongs to.

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

implementor

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

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a <PangoFontFamily>.

the <PangoFontFamily>

Virtual method: font-face:do-is-synthesized implementor self ⇒ %return

Returns whether a <PangoFontFace> is synthesized.

This will be the case if the underlying font rendering engine creates this face from another face, by shearing, emboldening, lightening or modifying it in some other way.

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

implementor

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

self

Passed: a <PangoFontFace>.

a <PangoFontFace>

%return

Returned: a boolean.

whether self is synthesized

Virtual method: font-face:do-list-sizes implementor self ⇒ sizes

List the available sizes for a font.

This is only applicable to bitmap fonts. For scalable fonts, stores #f at the location pointed to by sizes and 0 at the location pointed to by n-sizes. The sizes returned are in Pango units and are sorted in ascending order.

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

implementor

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

self

Passed: a <PangoFontFace>.

a <PangoFontFace>.

sizes

Returned: a s32vector, or #f.

location to store a pointer to an array of int. This array should be freed with byte-array:free.

n-sizes

Not returned: it is the length of sizes.

location to store the number of elements in sizes