-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error in Converting sup/sub script text #327
Comments
Thank you for raising your first issue! Your help to improve svglib is much appreciated! |
I could figure out that the lib is not able to correctly interpret font-size attribute with % units. It seems that it is looking for absolute values. |
This could be a low hanging fruit. Do you want to give it a try? |
If you give me some heads-up, I can give it a try. |
I see only a few lines related to sub/sub, but no test whatsoever. Maybe that is because it would be a visual result for an eyeball test. Maybe you want to start by writing such a test, an see if the baseline-shift is handled correctly, and extend from there? |
Part of the issue ( |
I generate a svg using Plotly which correctly adds the superscript/subscript characters to the chart title/label as seen in the fig below:
But when the svglib is used to convert the svg into flowables and then pdf is printed using reportlab, the subscript/superscript characters in the chart is not correct.
using the latest svglib=1.1.0
attaching the svg file:
The text was updated successfully, but these errors were encountered: