A `PangoAttrIterator` is used to iterate through a `PangoAttrList`.
A new iterator is created with [[email protected]_iterator]. Once the iterator is created, it can be advanced through the style
changes in the text using [[email protected]]. At each style change, the range of the current style segment and the
attributes currently in effect can be queried.