Layout.deserialize

Loads data previously created via pango.layout.Layout.serialize.

For a discussion of the supported format, see that function.

Note

to verify that the returned layout is identical to

the one that was serialized, you can compare bytes to the result of serializing the layout again.

Parameters

contexta pango.context.Context
bytesthe bytes containing the data
flagspango.types.LayoutDeserializeFlags

Returns

Throws