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.
parent-instanceReturns 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.
Passed: a <PangoFontFace>.
Returned: a <PangoFontDescription>.
a newly-created <PangoFontDescription>
structure holding the description of the face. Use
font-description:free to free the
result.
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).
Passed: a <PangoFontFace>.
Returned: a string.
the face name for the face. This string is owned by the face object and must not be modified or freed.
Gets the <PangoFontFamily> that self
belongs to.
Passed: a <PangoFontFace>.
Returned: a <PangoFontFamily>.
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.
Passed: a <PangoFontFace>.
Returned: a boolean.
whether self is synthesized
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.
Passed: a <PangoFontFace>.
Returned: a s32vector, or #f.
location to store a pointer to an array of int. This array should be
freed with byte-array:free.
Not returned: it is the length of sizes.
location to store the number of elements in sizes
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.
Passed: the class whose implementation to call:
<PangoFontFace>, or a class that derives from it,
or its GType number.
Passed: a <PangoFontFace>.
Returned: a <PangoFontDescription>.
a newly-created <PangoFontDescription>
structure holding the description of the face. Use
font-description:free to free the
result.
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.
Passed: the class whose implementation to call:
<PangoFontFace>, or a class that derives from it,
or its GType number.
Passed: a <PangoFontFace>.
Returned: a string.
the face name for the face. This string is owned by the face object and must not be modified or freed.
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.
Passed: the class whose implementation to call:
<PangoFontFace>, or a class that derives from it,
or its GType number.
Passed: a <PangoFontFace>.
Returned: a <PangoFontFamily>.
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.
Passed: the class whose implementation to call:
<PangoFontFace>, or a class that derives from it,
or its GType number.
Passed: a <PangoFontFace>.
Returned: a boolean.
whether self is synthesized
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.
Passed: the class whose implementation to call:
<PangoFontFace>, or a class that derives from it,
or its GType number.
Passed: a <PangoFontFace>.
Returned: a s32vector, or #f.
location to store a pointer to an array of int. This array should be
freed with byte-array:free.
Not returned: it is the length of sizes.
location to store the number of elements in sizes