These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Auto font sizing

phorsley
Registered: Nov 2 2007
Posts: 35

Hi,
 
Is there anyway we can set the auto font sizing to start at a certain size, I.e.12pt.
The customer requires the text in a box to shrink to fit in the box if a lot of text is entered, but they want the text to start from a certain size.
The text musn't scroll long lines as they have to print the forms out
 
thanks
 
Paul

My Product Information:
Acrobat Pro 10.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
It's not a perfect solution, but it will get you close...
You can change the value of "max" to fit the size of your field.

  1. var max = 10;
  2. if (event.value.length>max) event.target.textSize = 0;
  3. else event.target.textSize = 12;

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

try67
Expert
Registered: Oct 30 2008
Posts: 2398
(Forgot to mention that the script above should be used as the custom keystroke script.)

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com