#include #include int main (int argc, char **argv) { cairo_surface_t *surface, *similar; surface = cairo_ps_surface_create ("test.ps", 10, 10); cairo_ps_surface_dsc_comment (surface, "Bla?"); similar = cairo_surface_create_similar (surface, CAIRO_CONTENT_COLOR, 10, 10); printf ("type: %d <=> %d\n", cairo_surface_get_type (surface), cairo_surface_get_type (similar)); cairo_surface_destroy (similar); cairo_surface_destroy (surface); }