Closed salim-b closed 2 years ago
Thanks. Some feedback:
TRUE
and FALSE
are not C primitives, they are actually R objects. It is safer to use 0 and 1 for booleans.I've amended the examples.
TRUE
andFALSE
are not C primitives, they are actually R objects. It is safer to use 0 and 1 for booleans.
Since I use a cairo_bool_t
object, can't I use TRUE
/FALSE
, same as they do in the doc of cairo_ps_surface_set_eps
?
Since I use a cairo_bool_t object, can't I use TRUE/FALSE, same as they do in the doc of cairo_ps_surface_set_eps?
Ah maybe you are right. Hopefully it doesn't conflict with the R objects TRUE / FALSE though.
I've amended the examples.
Can you also re-roxygenize pls?
Ah maybe you are right. Hopefully it doesn't conflict with the R objects TRUE / FALSE though.
Works fine so far at my end...
Adds
rsvg_eps()
which converts to Encapsulated PostScript (EPS) format.Note that I'm a complete C noob (I 🤞 the C changes are fine). The relevant code part (
cairo_ps_surface_set_eps(surface, TRUE);
) was found in this librsvg commit.