Method

Pango.Layout.serialize

Declaration [src]

GBytes*
pango_layout_serialize (
  PangoLayout* layout,
  PangoLayoutSerializeFlags flags
)

Description [src]

Serializes the layout for later deserialization via pango_layout_deserialize().

There are no guarantees about the format of the output across different versions of Pango and pango_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.

Available since:1.50

Parameters

flags PangoLayoutSerializeFlags
 

PangoLayoutSerializeFlags

Return value

Returns: GBytes*

a GBytes containing the serialized form of layout

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