Sets the text attributes for a layout object.
References attrs, so the caller can unref its reference.
attrs
a Layout
a AttrList, can be null
null