This function copies all state information from src to dest. That includes not yet drawn paths and font information.
</para>
<para>
The new <linklinkend="cairo_t">cairo_t</link> will become owner of the target and clip surfaces by incrementing their refcount. But the surfaces will not be copied, that means operations on either src or dest will be painted onto the same surface.
</para>
<para>
Note that saved states on the stack can only be restored once. So if you have unclosed calls to <linklinkend="cairo_save">cairo_save</link> before copying, calling <linklinkend="cairo_restore">cairo_restore</link> on both, src and dest is invalid.