Package: pango

Class pango:layout

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

The pango:layout class represents an entire paragraph of text. It is initialized with a pango:context object, UTF-8 string and set of attributes for that string. Once that is done, the set of formatted lines can be extracted from the pango:layout object. The Pango layout can be rendered, and conversion between logical character positions within the text of the Pango layout, and the physical position of the resulting glyphs can be made.

There are also a number of parameters to adjust the formatting of a Pango layout. It is possible, as well, to ignore the 2-D setup, and simply treat the results of a Pango layout as a list of lines.

Figure: Adjustable parameters (on the left) and font metrics (on the right) for a Pango layout

 

Returned by

Inherited Slot Access Functions

See also

2025-2-18