Function

Pango.Layout.deserialize

Declaration [src]

PangoLayout*
pango_layout_deserialize (
  PangoContext* context,
  GBytes* bytes,
  PangoLayoutDeserializeFlags flags,
  GError** error
)

Description [src]

Loads data previously created via pango_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.

Available since:1.50

Parameters

context PangoContext
 

a PangoContext

 The data is owned by the caller of the function
bytes GBytes*
 

the bytes containing the data

 The data is owned by the caller of the function
flags PangoLayoutDeserializeFlags
 

PangoLayoutDeserializeFlags

Return value

Returns: PangoLayout

a new PangoLayout

The caller of the function takes ownership of the data, and is responsible for freeing it
Can be NULL