AttrList.toString_

Serializes a pango.attr_list.AttrList to a string.

In the resulting string, serialized attributes are separated by newlines or commas. Individual attributes are serialized to a string of the form

START END TYPE VALUE

Where START and END are the indices (with -1 being accepted in place of MAXUINT), TYPE is the nickname of the attribute value type, e.g. _weight_ or _stretch_, and the value is serialized according to its type:

class AttrList
string
toString_
()

Return Value

Type: string

a newly allocated string

Examples

0 10 foreground red, 5 15 weight bold, 0 200 font-desc "Sans 10"
0 -1 weight 700
0 100 family Times

To parse the returned value, use pango.attr_list.AttrList.fromString.

Note that shape attributes can not be serialized.