You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
are rendered incorrectly. The corresponding PNGs work. I understand it is a very complex file format but if there is a way to bump up the 3rd party dependency responsible for SVG loading and rendering to a better version, it should be done. SVGs are clearly preferred (also in the docs) and superior to PNGs but only when they work. It shouldn't be like rolling a die whether an SVG works or not.
This issue would help from being more specific.
There are already open tickets to report that text and gradients are not currently working.
Additionally CSS properties are not supported.
From the large icon set referenced it is not clear if there is anything outside of that list which is newly reported so that we can hunt down the cause and fix it.
I understand the concern. I've provided a link to an icon set that mostly doesn't work and a minimal program to test the images in it. Unfortunately, I don't know enough about the SVG format to be of more help. I certainly can't identify why these don't work in particular. Perhaps someone else can explain why they don't work.
If you plan to keep to support for SVGs partial for the time being (which is how I interpret your remark above), then I would suggest you mention the limitations in the docs, perhaps add a function to determine whether an SVG file is interpretable, or perhaps remove the recommendation to use SVG images from the docs.
As I said, right now it's like rolling a dice. Some images work, others don't, and there is no function in Fyne to determine programmatically which will work and which get displayed as mangled garbage. That makes the format almost unusable for some purposes (e.g. for user-provided images).
Checklist
Describe the bug
The SVG rendering in Fyne is fairly limited. For example, many of the SVGs in this package:
https://dribbble.com/shots/8934409-Diversity-Avatars
are rendered incorrectly. The corresponding PNGs work. I understand it is a very complex file format but if there is a way to bump up the 3rd party dependency responsible for SVG loading and rendering to a better version, it should be done. SVGs are clearly preferred (also in the docs) and superior to PNGs but only when they work. It shouldn't be like rolling a die whether an SVG works or not.
How to reproduce
Screenshots
These are not supposed to look like this (though the second one is kind of entertaining):
Example code
Fyne version
2.5.2
Go compiler version
1.22.0 linux/amd64
Operating system and version
Linux Mint 22 Cinnamon
Additional Information
No response
The text was updated successfully, but these errors were encountered: