[Sugar-devel] Handling of SVG in Sugar/Sugarizer
Lionel Laské
lionel.laske at gmail.com
Thu Aug 20 16:55:13 EDT 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20200820/6bbcefec/attachment.htm>
More information about the Sugar-devel
mailing list