new_for_font_type


Description:

[ Version ( since = "1.18" ) ]
public static FontMap? new_for_font_type (FontType fonttype)

Creates a new `PangoCairoFontMap` object of the type suitable to be used with cairo font backend of type fonttype.

In most cases one should simply use [func@PangoCairo.FontMap.new], or in fact in most of those cases, just use [ func@PangoCairo.FontMap.get_default].

Parameters:

fonttype

desired FontType

Returns:

the newly allocated `PangoFontMap` of suitable type which should be freed with unref, or null if the requested cairo font backend is not supported / compiled in.