-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aviator icon breaks apart in nomacs viewer #5816
Comments
I can't reproduce this with the Nomacs ( |
I tested it in Nomacs ( I'll check whether 22.04 has the newer version of Qt5. |
librsvg had a similar issue it appears numixproject/numix-icon-theme-circle#151 |
I just tested this in a newly created Ubuntu 22.04 virtual instance. After more investigation, I found a Qt bug report (QTBUG-92184). It is marked to be fixed in |
Is this issue caused by a behaviour change of Inkscape/Scour or is it also visible in older icons? Can't remember I've changed my optimise options |
There is a checkbox in Inkscape (Save as... Optimized SVG) that says "Work around renderer bugs", and that leaves in the spaces needed to render correctly. I combed through all icons from A to C (cytus-2).
Moreover, there are a solid few, where the baseplate dropshadow wonks out:
Did not check yet when these have been added, but it seems that this is not a singleton issue. |
So since the Qt bug is in Ubuntu LTS this might be worth fixing. Scour (which is what Inkscape uses for optimisation (and which looks unmaintained)) has the CLI option |
Looks like Scour has no batch functionality so for instance this batch snippet is needed
|
Well, this does Scours standard cleaning routine + |
Even if I specify the options the options according to our guidelines this will still touch older icons which were saved in a different way (which do not need a renderer fix). So this may cause unneeded side effects and many icon may need to be checked visually. |
I think there is. Since QtSvg breaks when rendering arcs with "missing" flag separators, I made a script that finds all such occurrances: https://gist.github.com/mrmeszaros/6384ae6769ce17e07bc9412cb8464244 The start of it's output matches with what I found manually, so I would extrapolate that it is correct for the rest. I think it should be easy to change the script to fix the files. |
Thank you, will try this. Another option would be to set a certain date of last edit for the files to be rewritten. |
@palob I thought about this, and I am mainly concerned with consistency:
Since (apart from me) no one is yet affected (and even I am only partially: when using Nomacs), so we might be fixing something that ain't broken. |
If the buggy Qt version is in Ubuntu 22.04 LTS this I suppose might affect users of Kubuntu (KDE) and Lubuntu (LXQt) who want to use the Numix themes in a way the icons look broken not only when viewed in an image viewer but in any place. |
I find 172 affected files for Circle (which means I must have added 3 new ones 😬) and 61 for Square. So the standard is still working around renderer bugs and I think that's a manageable number of icons to check visually (maybe icons which have not yet our current optimisation options applied can break) . |
Okay! Regarding the new icons, inkscape's optimized svg has the option to work around renderer bugs (such as this). |
I might not be able to do this in the following days, for some weeks now my laptop appears to be about to give up the ghost. |
Got it running again with the GPU deactivated (everything fairly sluggish now). Now as a last step before doing this maybe we should check with a Lubuntu/Kubuntu 22.04 iso whether this arc issue actually has any negative effects? |
Yeah, good idea, I'll do a vanilla Kubuntu + Lubuntu install (from ISO I guess? Virtualbox or maybe with some Libvirt/KVM/Qemu?). |
Yeah, thanks for doing that so I don't have to fiddle kernel parameters into the isos to have the GPU deactivated pre-boot. |
The aviator icon looks fine in most SVG viewers, but breaks apart in Nomacs.
Looked into it, and the issue is related to white-spacing of some arc commands like:
a4 4 0 00-4 4 4 4 0 004 4
Most viewers recognize the
004
as two flags and thex
offset, but nomacs does not.It is a reported rendering bug, not yet fixed.
Many icons I submitted were viewed with nomacs, so they have these superfluous white-spaces, but I see many do not have.
What is the numix standpoint towards this?
Screenshots
The text was updated successfully, but these errors were encountered: