Feedback from Caption if text overflows box?

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
johnfl68
Posts: 33
Joined: 2012-07-09T18:31:26-07:00
Authentication code: 13

Feedback from Caption if text overflows box?

Post by johnfl68 »

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
Post Reply