[cairo] Bug in 1.8.6 in PostScript Surface - test on win32 and linux
Darren Gallagher
dazzag at gmail.com
Mon Apr 27 03:30:11 PDT 2009
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" , 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090427/bc0ec076/attachment.htm
More information about the cairo
mailing list