pango.FontFamily
pango.FontFamily — an object representing a family of related font
faces.
Methods
pango.FontFamily.list_faces
The list_faces() method returns a list
of the different pango.FontFace
object that make up the font family>. The faces in a family share a common
design, but differ in slant, weight, width and other aspects.
pango.FontFamily.get_name
Returns : | the name of the family. |
The get_name() method returns a string
containing the name of the font family. The name is unique among all fonts
for the font backend and can be used in a pango.FontDescription
to specify that a face from this family is desired.
pango.FontFamily.is_monospace
Returns : | the name of the family. |
The is_monospace() method returns
TRUE if the font family describes a monospace font. 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. The best way to find out the grid-cell size is to call the
get_approximate_digit_width()
method, since the results of the get_approximate_char_width()