GlyphItemIter

Added in version 1.22.

class GlyphItemIter(*args, **kwargs)
Constructors:

GlyphItemIter()

Methods

class GlyphItemIter
free() None

Frees a ``PangoGlyphItem``Iter.

Added in version 1.22.

init_end(glyph_item: GlyphItem, text: str) bool

Initializes a PangoGlyphItemIter structure to point to the last cluster in a glyph item.

See PangoGlyphItemIter for details of cluster orders.

Added in version 1.22.

Parameters:
  • glyph_item – the glyph item to iterate over

  • text – text corresponding to the glyph item

init_start(glyph_item: GlyphItem, text: str) bool

Initializes a PangoGlyphItemIter structure to point to the first cluster in a glyph item.

See PangoGlyphItemIter for details of cluster orders.

Added in version 1.22.

Parameters:
  • glyph_item – the glyph item to iterate over

  • text – text corresponding to the glyph item

next_cluster() bool

Advances the iterator to the next cluster in the glyph item.

See PangoGlyphItemIter for details of cluster orders.

Added in version 1.22.

prev_cluster() bool

Moves the iterator to the preceding cluster in the glyph item. See PangoGlyphItemIter for details of cluster orders.

Added in version 1.22.

Fields

class GlyphItemIter
end_char
end_glyph
end_index
glyph_item
start_char
start_glyph
start_index
text