pango.FontMap
pango.FontMap — an object that represents the set of fonts available for a
particular rendering system.
Description
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.
Methods
pango.FontMap.load_font
def load_font(context, desc)
|
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.
pango.FontMap.load_fontset
def load_fontset(context, desc, language)
|
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.
pango.FontMap.list_families
The list_families() method returns a
list of all pango.FontFamily
objects for the fontmap.
pango.FontMap.get_shape_engine_type
def get_shape_engine_type()
|
Returns : | the ID string for the shape engines for the
font map. |
Note
This method is available in PyGTK 2.4 and above.
The get_shape_engine_type() method
returns the render ID for the shape engines for the font map