Go to the first, previous, next, last section, table of contents.


font Extension Module

font provides a window manager mixin for loading fonts:

WindowManager Mixin: Font

Font provides two functions for loading fonts:

Method: Font get_font ( fontname, default = None )

Returns the font object corresponding to fontname. If fontname doesn't match any font, attemt to return the font named default instead, if default is provided. If no font can be found, FontError is raised.

Method: Font get_font_res ( res_name, res_class, default = None )

Return the font object corresponding to the X resource identified by res_name res_class. WindowManager.rdb_get is used to lookup the resource, so the first components of the name and class should be omitted and they should start with `.'.

If this resource isn't found or doesn't match any font, attempt to return the font named default instead, if default is provided.

If no font can be found, FontError is raised


Go to the first, previous, next, last section, table of contents.