Highlighted

JSX Script accessing GlyphBounds

Community Beginner ,
Sep 01, 2020

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?

Topics

Scripting, Type

Views

63

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

JSX Script accessing GlyphBounds

Community Beginner ,
Sep 01, 2020

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?

Topics

Scripting, Type

Views

64

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 01, 2020

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.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Sep 02, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Silly-V LATEST
Adobe Community Professional ,
Sep 03, 2020

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Sep 01, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Community Beginner ,
Sep 02, 2020

Copy link to clipboard

Copied

Hopefully they will be added in a future release

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...