-
Notifications
You must be signed in to change notification settings - Fork 214
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
Text positioning regression in 0.36 compared to 0.27 #671
Comments
resvg renders this file just fine. Maybe you're handling transforms incorrectly on your side? As for thumbnailer, it looks like fonts were not loaded to begin with. Will try to figure it out. |
If you look closely to where the red arrow is pointing, then you can see the comma an lower part of the f can be seen on the thumbnail. So it loads some font and displays it, but at the same incorrect position as it does in my project. I am using the NodeExt abs_transform to get the position. Which worked fine in version 0.27, but not any more in 0.36, despite using TreeTextToPath. |
Yes, as I've said, there is definitely a bug in the thumbnailer, but not in resvg. Will see what's wrong with |
No worries. Thank you very much for all of your work and these crates 🙂 |
I was running version 0.27 of
resvg-explorer-extension.exe
for a long time and came around to update recently and noticed a regression between 0.27 and 0.36 in regard to the text handling/positioning.As i am also using
usvg
in a project of mine to parse SVG files and then render them, i went ahead and also updated my project from 0.27 to 0.36 and noticed the same regression there.Here you can find an example:
usvg 0.27 (correct text placement)
Rendered in my project:
usvg 0.36 (wrong text placement)
Rendered in my project:
Thumbnail rendered in explorer:
If you look closely where the arrow points to, you can see, some cut of text pieces there.
I'll also attach the file in question for debugging reasons:
twinkle.zip
The text was updated successfully, but these errors were encountered: