Package: pango

Function pango-font-font-map

Lambda List

pango-font-font-map (font)

Arguments

font -- a pango-font object, or nil

Return Value

The pango-font-map object for the font, or nil if font is nil

Details

Gets the font map for which the font was created.

Note that the font maintains a weak reference to the font map, so if all references to font map are dropped, the font map will be finalized even if there are fonts created with the font map that are still alive. In that case this function will return nil. It is the responsibility of the user to ensure that the font map is kept alive. In most uses this is not an issue as a pango-context object holds a reference to the font map.
 

See also

2021-1-8