[cairo] rsvg cairo and the size-22
donn
donn.ingle at gmail.com
Mon Jul 12 07:57:02 PDT 2010
Hi,
I am working from xml elements, passing them out to python-rsvg and
telling it to render. This is fine as long as I know what size that
element should be.
The "size-22" is when I don't: I need to know the size before I can
render the svg, but I can't calculate it until I have rendered it!
Is there some well-thumbed way to deal with this?
I am thinking of creating a very large tmp surface, rendering into it
and then asking the context (or rsvg) for the stroke/fill size and then
clipping that out and ... well it gets fuzzy. I have to get that cut-out
into Clutter (python-clutter 1.0's CairoTexture actor) somehow.
(It's either that or rendering everything *twice*, which just offends my
inner-coder :) )
Any hope?
\d
More information about the cairo
mailing list