Copy link to clipboard
Copied
I wrote a little Script converting an Array of Strings to outlines for SVG export. I however find the results of createOutline() extremely unsatisfactory, especially when compared to the results of doing the job "manually" (Right click > create outlines).
Right click, "Create Outlines"
createOutline() from Script
From first sight this seems like an issue with conversion accuracy set too low, however I wasn't able to locate a parameter to change the same.
Any help on how to achieve the look of the top image from within a script is highly appreciated.
1 Correct answer
Look int the possibility that Align to Pixel Grid is turned on in the Transform panel in this file.
Explore related tutorials & articles
Copy link to clipboard
Copied
Look int the possibility that Align to Pixel Grid is turned on in the Transform panel in this file.
Copy link to clipboard
Copied
Update: Yes it was the Option "Align new objects to Pixel Grid" in the New File Dialog... Took me some searching 😉
Copy link to clipboard
Copied
Hi Larry, do you know whether switching this "Align to Pixel Grid" feature can be scripted?
Copy link to clipboard
Copied
Note to self: it's available via the property called .pixelAligned

