• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Resize font to fit exactly to an area

New Here ,
Sep 14, 2017 Sep 14, 2017

Copy link to clipboard

Copied

Hi,

We are producing artwork which will fill a number with a list of names. Currently we have to paste the names into the link text areas and then play with the line height and font size in order to make it fit perfectly.

Example17.jpg

Is there any way to resize the font to automatically fit the area eaxctly (no gap at the bottom and no free space)?

Note - we are using COM automation to populate the designs.

Views

935

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
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 14, 2017 Sep 14, 2017

Unless you expand the text no. That's the old gag of the font's em box vs the actual contours. If you're really doing this a lot and always use the same fonts, though, by now you should have figured it out and hardwired the sizes into some paragraph styles or created scripts for your workflow.

Mylenium

Votes

Translate

Translate
Adobe
LEGEND ,
Sep 14, 2017 Sep 14, 2017

Copy link to clipboard

Copied

Unless you expand the text no. That's the old gag of the font's em box vs the actual contours. If you're really doing this a lot and always use the same fonts, though, by now you should have figured it out and hardwired the sizes into some paragraph styles or created scripts for your workflow.

Mylenium

Votes

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
community guidelines
New Here ,
Sep 14, 2017 Sep 14, 2017

Copy link to clipboard

Copied

Hi,

Thanks for the response. We have little Illustrator experience - we are software developers here.

We have been looking into the scripting method but cannot find out how to check if the text has overflowed. In InDesign there is a property called "overflows"  on a text area that would allow you to loop through re-rendering the text until it overflowed and then reduce it a bit. This functionality does not appear to be present on Illustrator.

I'm not sure where to look for help on this now!

Thanks.

Votes

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
community guidelines
Community Expert ,
Sep 14, 2017 Sep 14, 2017

Copy link to clipboard

Copied

LATEST

This script can correct rectangular text boxes:

Script: Fit Text Frame to Content (Depth) « Kelso’s Corner

Maybe the code gives you a clue.

Also there's a plugin that can detect text overflows: Text Overflow Alert for Adobe Illustrator - Macintosh

So if scripting does not get you there, you might need to write your own plugin.

Votes

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
community guidelines