[Sugar-devel] Handling of SVG in Sugar/Sugarizer
walter.bender at gmail.com
Thu Aug 20 17:22:04 EDT 2020
Very interesting. I hadn't known that svg had css support these days. Would
make sense to take advantage.
On Thu, Aug 20, 2020, 4:55 PM Lionel Laské <lionel.laske at gmail.com> wrote:
> Hi all,
> From the beginning, the handling of SVG files in Sugar rely on Entity
> fields in the header of files. Something like:
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
> <!ENTITY stroke_color "#000000">
> <!ENTITY fill_color "#999999">
> This mechanism is described on . Sugarizer rely on the same mechanism
> to colorize icons.
> Because this "hack" has some drawbacks - specifically on performance - I
> think to change it in a future version of Sugarizer to use native SVG/CSS
> features instead. I've done a detailed study here  to explain how it
> could work.
> Of course it will generate compatibility issues but it would be nice to
> see if the same thing could be done in Python too. I'm not a Python/Gtk
> specialist but will be happy to help on it.
>  https://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons
>  https://github.com/llaske/svgstudy
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Sugar-devel