itemize
fun itemize(context: Context, text: String, startIndex: <Error class: unknown class>, length: <Error class: unknown class>, attrs: AttrList, cachedIter: AttrIterator? = null): <Error class: unknown class>
Breaks a piece of text into segments with consistent directional level and font.
Each byte of @text will be contained in exactly one of the items in the returned list; the generated list of items will be in logical order (the start offsets of the items are ascending).
Return
a GList
of struct@Pango.Item structures. The items should be freed using method@Pango.Item.free in combination with func@GLib.List.free_full.
Parameters
context
a structure holding information that affects the itemization process.
text
the text to itemize. Must be valid UTF-8
startIndex
first byte in @text to process
length
the number of bytes (not characters) to process after @start_index. This must be >= 0.
attrs
the set of attributes that apply to @text.
cachedIter
Cached attribute iterator