[Kde-games-devel] Unify pixmap caching across card games

Luciano Montanaro mikelima at gmail.com
Thu Jan 10 17:58:41 CET 2008


Il Wednesday 09 January 2008 20:51:29 Andreas Pakulat ha scritto:

Just a quick note on the svg...

> > > And what about the raster decks?
> >
> > SVG has an <img> tag too. Non svg decks could be trivially converted to
> > svg decks by shipping the images together with a .svg wrapper containing
> > something like
> > <svg>
> > <img id="4_hearts" href="4_hearts.png" />
> > </svg>
> >
> > I did not look up the SVG specs, so the syntax may be a little
> > different...
>
> That would simplify a _lot_ of code. Especially it would remove the need
> for a mapping between combinations of card and suite to the actual png
> names. So +1 from my side if you can find somebody/some people to do it.
> Unfortunately I have close to 0 ide about SVG or how to edit it :)
>

Then it's quite easy. I tried putting together an svg wrapper the other night.
It is missing the backs, but it works. Just put it in the default deck 
directory, and test it with inkview or gwenview (or the Qt svgviewer)

The same file would basically work for all the Pixmap themes, the only needed 
change is to adapt to the card size. I can put togeether a perl script to 
generate the files in 20 minutes, if needed. 

Ciao,
Luciano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cards-default.svg
Type: image/svg+xml
Size: 5920 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-games-devel/attachments/20080110/bf982218/attachment.svg 


More information about the kde-games-devel mailing list