Copy link to clipboard
Copied
With the latest udpate of Illustrator it is possible to align to glyph bounds. Can the value of these glyph bounds be accessed via ExtendScript?
Copy link to clipboard
Copied
With the latest udpate of Illustrator it is possible to align to glyph bounds. Can the value of these glyph bounds be accessed via ExtendScript?
Copy link to clipboard
Copied
I just saw the new buttons after updating.
It seems to work on point-text better than area-text.
So, while they might have added new scripting commands along with this feature, to my current knowledge there's no scripting way to do this, yet. But there's the next-best way which only adds a tiny bit of time to your script execution: you first duplicate your text in question and convert it to outlines. The characters, even if they are made up of several non-touching shapes, should all transfer over into compound paths. Thus you can get the bounding coordinates as you wish. I bet under the hood, they do the same thing but are using the powers of C++ plugins to do this ultra-fast.
Copy link to clipboard
Copied
Thanks for the suggestion. The outlined text has bounds that are close to but not quite the same as the plain text glyphbounds
Copy link to clipboard
Copied
Hey, I'm new to this - can you please explain the difference between the outlines and what the 'plain text glyphbounds' are?
Copy link to clipboard
Copied
Unfortunately none of the new features were added to the Scripting API. There are zero scripting updates on the 24.3 release.
Copy link to clipboard
Copied
Hopefully they will be added in a future release