Package: pango

Function pango:layout-iter-run-readonly

Lambda List

pango:layout-iter-run-readonly (iter)

Arguments

iter -- a pango:layout-iter instance

Return Value

The pango:layout-iter instance with the current run, that should not be modified.

Details

Gets the current run. When iterating by run, at the end of each line, there is a position with a NULL run, so this function can return nil. The NULL run at the end of each line ensures that all lines have at least one run, even lines consisting of only a newline.

This is a faster alternative to the pango:layout-iter-run function, but the user is not expected to modify the contents of the run (glyphs, glyph widths, and so on).
 

See also

2025-2-15