A new iterator is created with pango.attr_list.AttrList.getIterator.
Once the iterator is created, it can be advanced through the style
changes in the text using pango.attr_iterator.AttrIterator.next. At each
style change, the range of the current style segment and the attributes
currently in effect can be queried.
A pango.attr_iterator.AttrIterator is used to iterate through a pango.attr_list.AttrList.
A new iterator is created with pango.attr_list.AttrList.getIterator. Once the iterator is created, it can be advanced through the style changes in the text using pango.attr_iterator.AttrIterator.next. At each style change, the range of the current style segment and the attributes currently in effect can be queried.