Sets the text of the layout.
This function validates text and renders invalid UTF-8 with a placeholder glyph.
Note that if you have used pango.layout.Layout.setMarkup or pango.layout.Layout.setMarkupWithAccel on layout before, you may want to call pango.layout.Layout.setAttributes to clear the attributes set on the layout from the markup as this function does not clear attributes.
the text
Sets the text of the layout.
This function validates text and renders invalid UTF-8 with a placeholder glyph.
Note that if you have used pango.layout.Layout.setMarkup or pango.layout.Layout.setMarkupWithAccel on layout before, you may want to call pango.layout.Layout.setAttributes to clear the attributes set on the layout from the markup as this function does not clear attributes.