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:
Using code based on the documentation:
Produces this result:
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.