PgCairoFontMap.this

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 pango_cairo_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.

Return Value

the newly allocated #PangoFontMap, which should be freed with g_object_unref().

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

1.10