Name
ccontext:PangoLayout -- create Pango layout
Synopsis
handle = ccontext:PangoLayout()
Function
Creates a Pango layout set up to match the current transformation and target surface of the Cairo context.

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.

Inputs
none

Results
handle
the newly created Pango layout

Show TOC