[Cuis-dev] SVG Icons
Hilaire Fernandes
hilaire at drgeo.eu
Sat Dec 4 02:40:08 PST 2021
Le 03/12/2021 à 19:16, Juan Vuletich a écrit :
> Hi Hilaire,
>
> Using PNG (as you know) means no scaling, handling renders at
> different sizes by hand, etc. It is much better to stick to vector
> graphics.
Indeed
>
> The current SVG morphs may be a bit slow, as they hold the whole
> structure of the SVG file in a tree of submorphs. For the window
> control buttons, I made faster custom versions that also use less
> memory. See for example #drawMenuIcon especially in
> AbstractVectorCanvas. If you don't find performance to be a problem,
> maybe using SVG is OK.
I am planing to use the SVG icon file as the reference, and to load it
and to cache as a form when needed by the GUI (form rendered with Cuis SVG).
>
> WRT the the height and width attributes, yes, we'd honor them. I won't
> be able to dig into that for the next few days, though.
No hurry. Plenty of stuff to keep me occupied.
Thanks
Hilaire
--
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
More information about the Cuis-dev
mailing list