[Sugar-devel] Handling of SVG in Sugar/Sugarizer

Walter Bender 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 [1]. 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 [2] 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.
>
> Regards.
>
>             Lionel.
>
>
> [1] https://wiki.sugarlabs.org/go/Development_Team/Almanac/Making_Icons
> [2] https://github.com/llaske/svgstudy
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200820/5590e3ce/attachment.htm>


More information about the Sugar-devel mailing list