From: Bryce Harrington <bryce@...1...> To: inkscape inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] more font work Date: Tue, 2 Mar 2004 11:16:28 -0800 (PST)
On Tue, 2 Mar 2004, Jonathan Phillips wrote:
Two things:
1.) What is the speed differences between using SVGs compared to XPMs for icons in the interface?
I don't think anyone's quantified it, but I traced through the code that gets called to render them, and it's quite extensive. My guess is that it's quite a bit slower, but couldn't say how much. I suspect that could be mitigated via caching the rendered bitmaps at compile or installation time.
2.) Currently, our interface doesn't use SVGs for icons, right?
I think it uses a mix of both SVG and XPM.
Bryce
Yes, it is a mix of both SVG and XPM. I was working on this a while ago when I added the Stock support. I got lost in the SVG icon rendering code and didn't know if we wanted to go exclusively with SVG or XPM, so I left things as a mix. I haven't had time to work on the code since before christmas. :(
Some icons in the icons.svg file aren't rendered as xpm yet. If we went exclusively with XPM's we could put everything in stock and get rid of the SPIcon code (I think). It should be faster and the code would be easier to manage and understand. Also, last time I looked, Valgrind was reporting quite a few memory leaks traceable to the SPIcon code.
Cheers, Rob. http://members.rogers.com/rcrosbie
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
What is standard to most GTK apps? There is something luring about using SVG icons since we are the SVG app, right? Also, by supporting SVG, that would that allow green-developers to quickly add icons for our app.
I know its more work, but SVGs sound like the proper way to go. Looks like gnome is moving that way as well with their entire interface to be svg rendered on-screen, as well as icons.
Otherwise, what would someone do to create an icon. Add it to icons.svg, then export it as a png, and then convert it to an XBM file?
It might be nice to get some of these new icons designed for our next release.
Jon
On Tue, 2004-03-02 at 11:36, Robert Crosbie wrote:
From: Bryce Harrington <bryce@...1...> To: inkscape inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] more font work Date: Tue, 2 Mar 2004 11:16:28 -0800 (PST)
On Tue, 2 Mar 2004, Jonathan Phillips wrote:
Two things:
1.) What is the speed differences between using SVGs compared to XPMs for icons in the interface?
I don't think anyone's quantified it, but I traced through the code that gets called to render them, and it's quite extensive. My guess is that it's quite a bit slower, but couldn't say how much. I suspect that could be mitigated via caching the rendered bitmaps at compile or installation time.
2.) Currently, our interface doesn't use SVGs for icons, right?
I think it uses a mix of both SVG and XPM.
Bryce
Yes, it is a mix of both SVG and XPM. I was working on this a while ago when I added the Stock support. I got lost in the SVG icon rendering code and didn't know if we wanted to go exclusively with SVG or XPM, so I left things as a mix. I haven't had time to work on the code since before christmas. :(
Some icons in the icons.svg file aren't rendered as xpm yet. If we went exclusively with XPM's we could put everything in stock and get rid of the SPIcon code (I think). It should be faster and the code would be easier to manage and understand. Also, last time I looked, Valgrind was reporting quite a few memory leaks traceable to the SPIcon code.
Cheers, Rob. http://members.rogers.com/rcrosbie
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Jonathan Phillips wrote:
What is standard to most GTK apps? There is something luring about using SVG icons since we are the SVG app, right? Also, by supporting SVG, that would that allow green-developers to quickly add icons for our app.
Exactly. This "dog-fooding" shows that Inkscape's product is actually useful.
And anyone who has ever used an SGI knows how nicely vector graphics icons work on the desktop.
Bob
I think I'm in favor of 100% svg icons. Conceptually and logistically.
I think we should adopt:
1.) Implement 100% svg icons where all icons are in icons.svg as default.
2.) Develop way to speed-up or cache icons for Inkscape in runtime.
3.) Develop Inkscape Icon Themeability (less priority). We should move the normal/default icons.svg here share/icons/default/icons.svg and then allow non-default theme matching with a system's current GTK theme system, as exemplified with this non-default theme folder, share/icons/gorilla/icons.svg. The reason the folder system might be better is if we then have any separate *.svg files eventually for other interfaces. Also then we could implement a similar theme folder approach for any other items in our system. Critique?
If you all think this is a good idea, then SWINGINCELT and/or ISHMAL could you help me with this. I'm still to much of a newbie to take this task on, but can design some icons and hopefully get some help from defendguin to build some other icon sets.
Jon
On Tue, 2004-03-02 at 12:56, Bob Jamison wrote:
Jonathan Phillips wrote:
What is standard to most GTK apps? There is something luring about using SVG icons since we are the SVG app, right? Also, by supporting SVG, that would that allow green-developers to quickly add icons for our app.
Exactly. This "dog-fooding" shows that Inkscape's product is actually useful.
And anyone who has ever used an SGI knows how nicely vector graphics icons work on the desktop.
Bob
SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Tue, 2004-03-02 at 16:17, Jonathan Phillips wrote:
2.) Develop way to speed-up or cache icons for Inkscape in runtime.
GtkIconFactory, or at least that'd be a useful facade for implementing said cache.
As already noted, SPIcon painting is done from a cached pixbuf already -- as I recall, the cache just isn't unified so there's still some duplicated effort.
-mental
participants (4)
-
Bob Jamison
-
Jonathan Phillips
-
MenTaLguY
-
Robert Crosbie