Package: pango

Function pango-item-apply-attrs

Lambda List

pango-item-apply-attrs (item iter)

Arguments

item -- a pango-item instance
iter -- a pango-attr-iterator instance

Details

Add attributes to a pango-item instance. The idea is that you have attributes that do not affect itemization, such as font features, so you filter them out using the function pango-attr-list-filter, itemize your text, then reapply the attributes to the resulting items using this function.

The iter should be positioned before the range of the item, and will be advanced past it. This function is meant to be called in a loop over the items resulting from itemization, while passing the iter to each call.

Since 1.44
 

See also

2021-1-12