AW: relation between textsize and field height?

Tiemo Hollmann TB toolbook at kestner.de
Fri Oct 5 08:21:34 EDT 2012


By making some statistics, I found a factor: field height = 1.9 * textsize.
But this is just trial and error. Is there any "standard layout factor"?
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB
> Gesendet: Freitag, 5. Oktober 2012 14:02
> An: 'How to use LiveCode'
> Betreff: relation between textsize and field height?
> 
> Hi,
> 
> 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 is 21
> 
> Textsize=24, margins=8 the formattedheight is 46 and the ideal field
> height is 46
> 
> 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.
> 
> Thank you
> 
> Tiemo
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list