[Kde-games-devel] KSVGRenderer::render seems to ignore image size

Luciano Montanaro mikelima at gmail.com
Thu Jan 31 12:08:58 CET 2008


On Thursday 31 January 2008 12:01:37 Mauricio Piacentini wrote:
> Andreas Pakulat wrote:
> > Sorry, but I think I don't follow. Whats "canvas size" and I assume the
> > "rect" is the one given to render()? If so that rect should be equal to
> > the QImage I render on, as I don't give a QRectF() to render().
>
> In this case, Aaron is referring to the SVG document size. What I
> mentioned in my message is that I have seen in the past are cases where
> this is not respected by QtSvg for some Inkscape documents. Or, in other
> words, parsing fails so that a rect bigger than all the elements is
> considered as the full SVG doc rect. Explicitally making the element
> into a group and given it an id ensures you can specify the element to
> be rendered.
>
> > I'm not sure I have a proper element id for the backside here. It looks
> > like there's only one element labelled "layer1" in all the backside
> > svg's, so maybe I can use that one.
>

Better yet, create a group containing the card back and call it something 
descriptive, like "back".

Are we sure we want to keep the separate backs? 

They would not work with my newest card design[1]... ;) 

Ciao,
Luciano

[1] http://www.cirulla.net/listing/kde_stuff/tigullio-rounded.svg


More information about the kde-games-devel mailing list