-
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
textLength attribute not handled #345
Comments
Thank you for raising your first issue! Your help to improve svglib is much appreciated! |
Confirmed, svglib does not consider the 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.
The text was updated successfully, but these errors were encountered: