Open ronak1009 opened 2 years ago
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.
<tspan style="font-size:70%" dy="0.3em">
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 (E-6/K
missing) will be fixed by #344.
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: