[cairo] rsvg cairo and the size-22

donn donn.ingle at gmail.com
Mon Jul 12 10:45:49 PDT 2010


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



More information about the cairo mailing list