Mobile app version of vmapp.org
Login or Join
Eichhorn212

: Creating outline using extendscript distorts text I believe this is an Illustrator issue and not a coding issue therefore I'm posting it here. I have this script that does a few things to my

@Eichhorn212

Posted in: #AdobeIllustrator

I believe this is an Illustrator issue and not a coding issue therefore I'm posting it here.

I have this script that does a few things to my documents including outlining the text (then saving as a PDF).

I discovered on one of my documents that the script distorts the text when outlining. I can copy the text to a new file and then the script outlines it correctly.

Example:

Original text


Outlined by code text

Any insight into this will be greatly appreciated, since I want to avoid this issue in the first place.

Note: Using Illustrator CS6. Code to outline is textElement.createOutline().

Thank you.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Eichhorn212

1 Comments

Sorted by latest first Latest Oldest Best

 

@YK2262411

Ok, after a bit of tinkering I've discovered what's happening.

Explanation: When the document is set to align to pixel grid, then any new object gets adjusted to be aligned to the grid. Now it seems that the way Illustrator implements it's createOutline() function, is in such a way that it creates a new object (maybe each letter is a new object) and then adjust them to fit the grid, so it needs to get rid of the curves of the text.

Solution: Be sure document is not set to align to grid, or turn it off.

P.S. If any Adobe developers can confirm the above hypothesis that would be cool.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme