How to calculate a length of text field in scriptlet

0

I am looking for a scriptlet example to know overflow of a text field.

I'd like to pass a font, font size and a string from a text field and find out if the string does not fit to the length of the textfield.

If yes, I am going to show a box with a smaller font size, if no, a box with a default font size.

Ideally, it should be something like 'fit to the box', providing a size of the box and textfield.

In this solution, the font size is not changing, just horizontal character spacing is changing

aniri.g's picture
10
Joined: Mar 18 2013 - 8:03am
Last seen: 2 years 2 months ago

0 Answers:

No answers yet
Feedback