Font.deserialize

Loads data previously created via [pango.font.Font.serialize].

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

Note

to verify that the returned font is identical to

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

Parameters

contexta [pango.context.Context]
bytesthe bytes containing the data

Returns

a new [pango.font.Font]

Throws

[ErrorWrap]