Open MattiWheels opened 2 years ago
Thank you for raising your first issue! Your help to improve svglib is much appreciated!
Confirmed, svglib does not consider the textLength
attribute.
reportlab String shape does only support a limited set of attributes. Not sure if svglib could implement that or if we should simply document the limitation.
@claudep Thanks for your response on this issue. I am finding that Python and JS libraries don't support the use of certain properties like textLength, lengthAdjust, and some transforms. I'm sure there are more unsupported properties, but these are the ones that I am having troubles with.
The solution I have found is to use ExtendScript and make these adjustments using Illustrator actions / automation. I'm hoping to find a replacement, since Python or JS can outpace ExtendScript by a longshot (I'm hoping to generate over 150k images for a database with this technique).
No errors are thrown but the expected output is not produced.
SVG Document:
SVG Appearance:![image](https://user-images.githubusercontent.com/1672142/169611274-731dcac7-2cc4-4c3a-be1c-91b0aa8f7f7e.png)
Using code based on the documentation:
Produces this result:![image](https://user-images.githubusercontent.com/1672142/169611333-5dffdaa4-5e4e-46c2-a37b-7382b143869d.png)
Note: The grey background shown in the SVG appearance is just the preview area in VS Code and is not a part of the design. Also, sorry for the cursor appearing in the screenshot.