It derives from <GObject>.
A <PangoFontFamily> is used to represent a
family of related font faces.
The font faces in a family share a common design, but differ in slant, weight, width or other aspects.
parent-instanceIs this a monospace font
Its value is a boolean.
It is read only.
Is this a variable font
Its value is a boolean.
It is read only.
The type of items contained in this list.
Its value is a class, or a GType number.
It is read only.
The number of items contained in this list.
Its value is an unsigned 32-bit integer.
It is read only.
The name of the family
Its value is a string, or #f.
It is read only.
Gets the <PangoFontFace> of self with the
given name.
Passed: a <PangoFontFamily>.
Passed, or left out: a string, or #f.
the name of a face. If the name is #f, the family’s default face
(fontconfig calls it "Regular") will be returned.
Returned: a <PangoFontFace>, or #f.
the <PangoFontFace>, or #f if no face with
the given name exists.
Gets the name of the family.
The name is unique among all fonts for the font backend and can be used
in a <PangoFontDescription> to specify
that a face from this family is desired.
Passed: a <PangoFontFamily>.
Returned: a string.
the name of the family. This string is owned by the family object and must not be modified or freed.
A monospace font is a font designed for text display where the the characters form a regular grid.
For Western languages this would mean that the advance width of all
characters are the same, but this categorization also includes Asian
fonts which include double-width characters: characters that occupy two
grid cells. unichar-iswide? returns a
result that indicates whether a character is typically double-width in a
monospace font.
The best way to find out the grid-cell size is to call
font-metrics:get-approximate-digit-width,
since the results of font-metrics:get-approximate-char-width
may be affected by double-width characters.
Passed: a <PangoFontFamily>.
Returned: a boolean.
#t if the family is monospace.
A variable font is a font which has axes that can be modified to produce different faces.
Such axes are also known as _variations_; see font-description:set-variations for more information.
Passed: a <PangoFontFamily>.
Returned: a boolean.
#t if the family is variable
Lists the different font faces that make up self.
The faces in a family share a common design, but differ in slant, weight, width and other aspects.
Note that the returned faces are not in any particular order, and multiple faces may have the same name or characteristics.
<PangoFontFamily> also implemented the
<GListModel> interface for enumerating
faces.
Passed: a <PangoFontFamily>.
Returned: a vector, each a <PangoFontFace>.
location to store an array of pointers to
<PangoFontFace> objects, or #f. This
array should be freed with byte-array:free when
it is no longer needed.
Not returned: it is the length of faces.
location to store number of elements in faces.
Gets the <PangoFontFace> of self with the
given name.
To override it in a new class, give register-type #:vfuncs
`((get-face . ,procedure)). The procedure is called as
(procedure self name) ⇒ %return.
Passed: the class whose implementation to call:
<PangoFontFamily>, or a class that derives from
it, or its GType number.
Passed: a <PangoFontFamily>.
Passed, or left out: a string, or #f.
the name of a face. If the name is #f, the family’s default face
(fontconfig calls it "Regular") will be returned.
Returned: a <PangoFontFace>, or #f.
the <PangoFontFace>, or #f if no face with
the given name exists.
Gets the name of the family.
The name is unique among all fonts for the font backend and can be used
in a <PangoFontDescription> to specify
that a face from this family is desired.
To override it in a new class, give register-type #:vfuncs
`((get-name . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<PangoFontFamily>, or a class that derives from
it, or its GType number.
Passed: a <PangoFontFamily>.
Returned: a string.
the name of the family. This string is owned by the family object and must not be modified or freed.
A monospace font is a font designed for text display where the the characters form a regular grid.
For Western languages this would mean that the advance width of all
characters are the same, but this categorization also includes Asian
fonts which include double-width characters: characters that occupy two
grid cells. unichar-iswide? returns a
result that indicates whether a character is typically double-width in a
monospace font.
The best way to find out the grid-cell size is to call
font-metrics:get-approximate-digit-width,
since the results of font-metrics:get-approximate-char-width
may be affected by double-width characters.
To override it in a new class, give register-type #:vfuncs
`((is-monospace . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<PangoFontFamily>, or a class that derives from
it, or its GType number.
Passed: a <PangoFontFamily>.
Returned: a boolean.
#t if the family is monospace.
A variable font is a font which has axes that can be modified to produce different faces.
Such axes are also known as _variations_; see font-description:set-variations for more information.
To override it in a new class, give register-type #:vfuncs
`((is-variable . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<PangoFontFamily>, or a class that derives from
it, or its GType number.
Passed: a <PangoFontFamily>.
Returned: a boolean.
#t if the family is variable
Lists the different font faces that make up self.
The faces in a family share a common design, but differ in slant, weight, width and other aspects.
Note that the returned faces are not in any particular order, and multiple faces may have the same name or characteristics.
<PangoFontFamily> also implemented the
<GListModel> interface for enumerating
faces.
To override it in a new class, give register-type #:vfuncs
`((list-faces . ,procedure)). The procedure is called as
(procedure self) ⇒ faces.
Passed: the class whose implementation to call:
<PangoFontFamily>, or a class that derives from
it, or its GType number.
Passed: a <PangoFontFamily>.
Returned: a vector, each a <PangoFontFace>.
location to store an array of pointers to
<PangoFontFace> objects, or #f. This
array should be freed with byte-array:free when
it is no longer needed.
Not returned: it is the length of faces.
location to store number of elements in faces.