FontMap.new_

Creates a new pangocairo.font_map.FontMap object.

A fontmap is used to cache information about available fonts, and holds certain global parameters such as the resolution. In most cases, you can use `funcPangoCairo.font_map_get_default] instead.

Note that the type of the returned object will depend on the particular font backend Cairo was compiled to use; You generally should only use the pango.font_map.FontMap and pangocairo.font_map.FontMap interfaces on the returned object.

You can override the type of backend returned by using an environment variable PANGOCAIRO_BACKEND. Supported types, based on your build, are fc (fontconfig), win32, and coretext. If requested type is not available, NULL is returned. Ie. this is only useful for testing, when at least two backends are compiled in.

interface FontMap
static
new_
()

Return Value

Type: pango.font_map.FontMap

the newly allocated pango.font_map.FontMap, which should be freed with gobject.object.ObjectG.unref.