Feedback from Caption if text overflows box?
Posted: 2012-11-21T11:41:34-07:00
Hello:
Does anyone know if there is a way to get a result back when you use caption in perl, so that you can get a flag back if your text has overflowed the box?
For example get back a "1" if the text fit in the box, or a "0" if it did not.
I have a situation where I am dealing with a long piece of changing text being place in a large box. Most of the time all of the text will fit in the box. But, about 10% of the time the text is longer, and the bottom few lines get cut off.
If anyone knows, it would be appreciated.
Otherwise, I will just figure out the character count that fills the box, and if it is over that amount, reduce the font size.
Thanks!
John
Does anyone know if there is a way to get a result back when you use caption in perl, so that you can get a flag back if your text has overflowed the box?
For example get back a "1" if the text fit in the box, or a "0" if it did not.
I have a situation where I am dealing with a long piece of changing text being place in a large box. Most of the time all of the text will fit in the box. But, about 10% of the time the text is longer, and the bottom few lines get cut off.
If anyone knows, it would be appreciated.
Otherwise, I will just figure out the character count that fills the box, and if it is over that amount, reduce the font size.
Thanks!
John