@new


Description:

public static FontMap @new ()

Creates a new `PangoCairoFontMap` 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 `func@PangoCairo.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 `PangoFontMap` and `PangoCairoFontMap` 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.

Returns:

the newly allocated `PangoFontMap`, which should be freed with unref.