handle = ccontext:PangoLayout()
This layout can then be used for text measurement with functions like playout:GetSize() or drawing with functions like ccontext:ShowLayout(). If you change the transformation or target surface for the Cairo context, you need to call ccontext:UpdateLayout().
This function is the most convenient way to use Cairo with Pango, however it is slightly inefficient since it creates a separate Pango context object for each layout. This might matter in an application that was laying out large amounts of text.