pango.FontMap — an object that represents the set of fonts available for a particular rendering system.
class pango.FontMap(gobject.GObject): |
A pango.FontMap
object represents the set of fonts available for a particular rendering
system. There appears to be no way to retrieve a pango.FontMap
object in PyGTK
.
def load_font(context
, desc
)
context : | the pango.Context the
font will be used with |
desc : | a pango.FontDescription
describing the font to load |
Returns : | the loaded font , or None if
no font matched. |
The load_font
() method loads the pango.Font
in the
fontmap that is the closest match for the pango.FontDescription
specified by desc
in the pango.Context
specified by context
.
def load_fontset(context
, desc
, language
)
context : | the pango.Context the
font will be used with |
desc : | a pango.FontDescription
describing the font to load |
language : | a pango.Language
the fonts will be used for |
Returns : | a pango.FontSet , or
None if no font matched. |
The load_fontset
() method loads a set
of pango.Font
objects in the fontmap that can be used to render a font matching the pango.FontDescription
specified by desc
for the pango.Language
specified by language
in the pango.Context
specified by context
.
def list_families()
Returns : | a list of pango.FontFamily
objects. |
The list_families
() method returns a
list of all pango.FontFamily
objects for the fontmap.