relation between textsize and field height?
Tiemo Hollmann TB
toolbook at kestner.de
Fri Oct 5 08:01:42 EDT 2012
I want to let the user change the textsize of single line fields. Now I am
looking for a formula for calculating the ideal field height, so that the
text sits centered in the height of the field. The perfect height of the
field is neither (at least not for all options) the formatted height, nor
the textsize + 2 x margins or something like this. E.G
Textsize=12, margins=8 the formattedheight is 30 and the ideal field height
Textsize=24, margins=8 the formattedheight is 46 and the ideal field height
Does anybody has a formula or an idea to get the ideal height for single
line fields? Perhaps I just don't see the obvious parameter.
More information about the Use-livecode