-
Notifications
You must be signed in to change notification settings - Fork 352
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
Regression from commit e7f5981 breaks many hitherto valid SVG icons #188
Comments
Here's one of those icons which are now broken with e7f5981: The full icon set is in https://github.com/godotengine/godot/tree/master/editor/icons I tried this Here's how it looks like with e7f5981 reverted: (All these icons are MIT licensed, you're welcome to use any of them as regression test material.) |
This reverts commit f697e78. Part of the update introduced a regression: memononen/nanosvg#188. We could include a local revert of the problematic commit but let's just do a full revert to our previous version, and I'll re-update once the regression is fixed upstream. Fixes #43641.
The following patch fixes the regression: Change line 1477 of nanosvg.h from:
To:
Valid floating point numbers may start by a dot. With this the icon displays as expected. |
And of course the comment at the previous line may be updated. |
Fix pushed to Tk: https://core.tcl-lang.org/tk/info/2b07cb2b9e86e2c4 |
This reverts commit f697e78. Part of the update introduced a regression: memononen/nanosvg#188. We could include a local revert of the problematic commit but let's just do a full revert to our previous version, and I'll re-update once the regression is fixed upstream. Fixes godotengine#43641.
…to valid SVG icons #188', see memononen/nanosvg#188
…to valid SVG icons #188', see memononen/nanosvg#188 From Tk commit https://core.tcl-lang.org/tk/info/2b07cb2b9e86e2c4 Bump Version to 0.7. Still waiting for big files bug decission in Tk for a release.
Great work. Also pushed to https://github.com/oehhar/tksvg Thank you, Francois, that you care so well ! Thanks, |
@fvogelnew1 Do you want to make a PR to this repo so that @memononen can merge it when they get to it? (And for other downstream users to have a clearly visible PR to cherry-pick in the meantime.) |
@akien-mga Thanks for debugging it, and @fvogelnew1 thanks for the PR. Merged. |
We use nanosvg in https://github.com/godotengine/godot, and after syncing with the current
master
branch, most of our SVG icons end up broken (downstream issue).I bisected the regression to:
CC @memononen
I haven't investigated further yet to see if it's actually most Godot icons which are invalid, or if it's indeed a wrong change in e7f5981.
For the reference, here's the relevant Godot code that uses nanosvg to import SVG files as textures: https://github.com/godotengine/godot/blob/master/modules/svg/image_loader_svg.cpp
The text was updated successfully, but these errors were encountered: