[cairo] Bug in 1.8.6 in PostScript Surface - test on win32 and linux
Adrian Johnson
ajohnson at redneon.com
Wed Apr 29 06:22:15 PDT 2009
Darren Gallagher wrote:
> Using the 1.8.6 source download the following test program results in a
> blank PS file on both windows and linux:
>
> cairo_surface_t *surface;
> cairo_t *cr;
>
> surface = cairo_ps_surface_create ("hellocairo.ps
> <http://hellocairo.ps>" , 504, 648);
> cr = cairo_create (surface);
> cairo_set_source_rgb(cr, 0, 0, 0);
> cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL,
> CAIRO_FONT_WEIGHT_NORMAL);
> cairo_set_font_size (cr, 40.0);
> cairo_move_to(cr, 10.0, 50.0);
> cairo_show_text(cr, "Hello, Cairo!");
> drawDashLine(cr);
> cairo_show_page(cr);
> cairo_destroy(cr);
> cairo_surface_flush(surface);
> cairo_surface_finish(surface);
> cairo_surface_destroy(surface);
>
What do you mean by "blank"? Is the file empty or is it a PostScript
file that prints/displays nothing? Could you post the complete test case
and the PostScript output. It would also be helpful to check the context
and surface status just before they are destroyed. See the
cairo_status() and cairo_surface_status() functions.
More information about the cairo
mailing list