Layout.setWrap
void setWrap(pango.types.WrapMode wrap)Sets the wrap mode.
The wrap mode only has effect if a width is set on the layout with pango.layout.Layout.setWidth. To turn off wrapping, set the width to -1.
The default value is pango.types.WrapMode.Word.
Parameters
wrap | the wrap mode |