Again an SVG rendering bug, so here we go.
What I did
I wanted to combined (or add) an arrow at the bottom of the Mastodon brand/icon and kept everything else, basically. (Switching the letter was easy, e.g., and can be ignored here) However, this lead to some rendering bugs in some software.
What I did in Inkscape was basically:
- Converting the arrow stroke to path.
- Creating a simple (or not so simple, in the first version) object, which has the same gradient as my original logo.
- Going to Object -> Clip path and setting the clip path, so the object uses the background gradient, but keeps it's arrow shape.
Aim
This was the end result I got (PNG here):
And this is how it should look.
First broken version
First I had this Inkscape SVG:
(You may see the rendering bug here, already, as this is the original SVG.)
In Inkscape, this, however, renders properly as that:
In Firefox, this renders as this, however:
Note how the arrow is just missing here. The size differences can of course be ignored, it's an SVG after all.
Also notice that saving the SVG as optimized (Inkscape uses a project called scour for that.) did not help in any way.
Second version
I re-did the whole thing as I may have done something wrong (I e.g. used the "Clean" option in Inkscape's File menu), and got the current version now:
Here another direct upload to keep the state of the SVG:
This renders broken too in Firefox and my file explorer (GNOME Nautilus) and image viewer (Eye of GNOME):
However, if saved as "Optimized SVG", it works now (SVG version):
This renders properly in Firefox (Screenshot/PNG):
GNOME, however, again handles this a little awkwardly:
Note how the arrow somehow has a stroke or so, but is only partially filled or whatever it shows.
System
Operating system and version: Fedora Silverblue 37
Browser and version: Firefox 107.0.1
Inkscape:
Inkscape 1.2.2 (b0a8486541, 2022-12-01)
GLib version: 2.72.4
GTK version: 3.24.35
glibmm version: 2.66.1
gtkmm version: 3.24.5
libxml2 version: 2.9.12
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.50.12
HarfBuzz version: 3.0.0
OS version: GNOME 42 (Flatpak runtime)
GNOME 43.1
Given that the optimized version works in Firefox, this was okay for me, but it anyway would be good to know why/what happened and possibly be fixed, where-ever it needs fixing.
Upstream issue: https://github.com/rugk/mastodon-simplified-federation/issues/90