Package: pango

Function pango-layout-text

Lambda List

pango-layout-text (layout)

Syntax

(pango-layout-text layout) => text
(setf (pango-layout-text layout) text)

Arguments

layout -- a pango-layout object
text -- a string with a valid UTF-8 string

Details

Accessor of the text of a pango-layout object.

The function pango-layout-text gets the text in the Pango layout. The function (setf pango-layout-text) sets the text of the Pango layout.

Note that if you have used the functions pango-layout-set-markup or pango-layout-set-markup-with-accel on the Pango layout before, you may want to call the function pango-layout-attributes to clear the attributes set on the layout from the markup as this function does not clear attributes.
 

See also

2020-10-18