[cairo] rsvg cairo and the size-22

Dominic Lachowicz domlachowicz at gmail.com
Mon Jul 12 10:53:42 PDT 2010

rsvg_handle_get_dimensions() doesn't require you to pass it a cairo
context first.

The "nil" surface is internal to librsvg. Nothing worth googling about.

On Mon, Jul 12, 2010 at 1:45 PM, donn <donn.ingle at gmail.com> wrote:
> On 12/07/2010 17:10, Dominic Lachowicz wrote:
>> Unless I mis-understand you, RSVG has a method to get the SVG's size.
> Only once the drawing is rendered. You have to pass it (afaik) a cairo
> context first — that means making a surface to a size.
>> If there's no size in the SVG, RSVG does a "render" onto a nil surface
>> in order to determine the SVG's bounding box.
> I have looked at my docs, but can't see anything about a nil surface, will
> hit google soon.
> It really looks like an inevitable problem thought; I reckon a double draw
> seems the most efficient way to do things.
> Thx,
> \d
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

"I like to pay taxes. With them, I buy civilization." --  Oliver Wendell Holmes

More information about the cairo mailing list