Layout.serialize
glib.bytes.Bytes serialize(pango.types.LayoutSerializeFlags flags)Serializes the layout for later deserialization via [pango.layout.Layout.deserialize].
There are no guarantees about the format of the output across different versions of Pango and [pango.layout.Layout.deserialize] will reject data that it cannot parse.
The intended use of this function is testing, benchmarking and debugging. The format is not meant as a permanent storage format.
Parameters
flags | [pango.types.LayoutSerializeFlags] |
Returns
a [glib.bytes.Bytes] containing the serialized form of layout