FontMap.newForFontType

Creates a new [pangocairo.font_map.FontMap] object of the type suitable to be used with cairo font backend of type fonttype.

In most cases one should simply use [pangocairo.font_map.FontMap.new_], or in fact in most of those cases, just use [pangocairo.font_map.FontMap.getDefault].

Parameters

fonttypedesired #cairo_font_type_t

Returns

the newly allocated

[pango.font_map.FontMap] of suitable type which should be freed with [gobject.object.ObjectWrap.unref], or null if the requested cairo font backend is not supported / compiled in.