Package: pango

Function pango-cairo-create-context

Lambda List

pango-cairo-create-context (cr)

Arguments

cr -- a cairo-t context

Return Value

The newly created pango-context object.

Details

Creates a context object set up to match the current transformation and target surface of the Cairo context. This context can then be used to create a layout using the function pango-layout-new.

This function is a convenience function that creates a context using the default font map, then updates it to cr. If you just need to create a layout for use with cr and do not need to access the pango-context object directly, you can use the function pango-cairo-create-layout instead.
 

See also

2021-1-9