shapeItem

fnvoid shapeItem(pango.item.Item item, string paragraphText, pango.types.LogAttr logAttrs, pango.glyph_string.GlyphString glyphs, pango.types.ShapeFlags flags)

Convert the characters in item into glyphs.

This is similar to funcPango.shape_with_flags, except it takes a [pango.item.Item] instead of separate item_text and analysis arguments.

It also takes log_attrs, which are needed for implementing some aspects of hyphen insertion and text transforms (in particular, capitalization).

Note that the extra attributes in the analyis that is returned from funcPango.itemize have indices that are relative to the entire paragraph, so you do not pass the full paragraph text as paragraph_text, you need to subtract the item offset from their indices before calling funcPango.shape_with_flags.

Parameters

item[pango.item.Item] to shape
paragraphTexttext of the paragraph (see details).
logAttrsarray of [pango.types.LogAttr] for item
glyphsglyph string in which to store results
flagsflags influencing the shaping process