I am creating forms where
the amount of text in some fields is hard to control or predict, but it is
important that all the text is visible to print or view. For simple
single-line fields, it seems I can do this by setting the font size (textSize)
to auto and the rectangle for the field to a size that results in the
desired font size for a case where the text will fit in the field. If more
text is entered than will fit, the font size shrinks to make it fit. Very
cool.
However, in multi-line
fields, the font size will start huge, and only shrink when text
overflows. I would like to be able to set a maximum font size, so that,
for example, text starts out at 10pt, but if it would overflow, shrink to
fit. I can't see any way to do that.
Does anyone know of a way
to determine in _javascript_ that the text in a field will not fit with the
current font size? Then I could detect that case and set the font size to
auto.
Craig
| Craig Pennington |
| Coherent Systems, Inc. |
| [EMAIL PROTECTED] |
| 541-488-1441 |
