Text inside <tspan></tspan> svg element does not painting when generating png files.
Demo:
https://commons.wikimedia.org/wiki/File:Voronoi_diagram_with_two_points.svg
Text inside <tspan></tspan> svg element does not painting when generating png files.
Demo:
https://commons.wikimedia.org/wiki/File:Voronoi_diagram_with_two_points.svg
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T43371 Thumbnail/imagescaler (tracking) | |||
Resolved | TheDJ | T88833 SVG thumbnail generator: relative font-size: smaller/larger not handled (text disappear) | |||
Resolved | hnowlan | T193352 Update librsvg to ≥2.42.3 (2.44.10) | |||
Resolved | hnowlan | T216815 Upgrade Thumbor to Buster | |||
Invalid | None | T212941 Investigate systemd hardening to replace Firejail for Thumbor | |||
Resolved | fgiunchedi | T212946 Stream Thumbor logs to logstash | |||
Resolved | • Gilles | T187765 Replace the Nginx fronting Thumbor with Haproxy | |||
Resolved | fgiunchedi | T204266 Backport prometheus haproxy exporter for Jessie | |||
Resolved | jijiki | T220499 Export useful metrics from haproxy logs for Thumbor | |||
Resolved | jijiki | T221562 Build Thumbor packages for buster |
I've analysed this file, it seems simply librsvg not support style="font-size: smaller" and font-size="smaller".
Looking at https://bugzilla.gnome.org/page.cgi?id=browse.html&product=librsvg I could not find a dedicated ticket - if this is an upstream issue, do you plan to upstream it?
If I get this correctly, it's not implemented in upstream, see:
https://git.gnome.org/browse/librsvg/tree/rsvg-css.c#n152
https://git.gnome.org/browse/librsvg/tree/rsvg-css.c#n200
https://git.gnome.org/browse/librsvg/tree/rsvg-css.c#n259
Thats it, thanks for taking a look in the code (so I change the task desc.). And yes I'll do it. (It would be even less noticeable when the text would not entirely disappear.)
For anyone trying to reproduce this; the SVG linked in the task description has been changed to no longer use font-size="smaller", so it renders fine, but the underlying bug in librsvg is not addressed yet.