AW: relation between textsize and field height?

Tiemo Hollmann TB toolbook at kestner.de
Fri Oct 5 08:22:32 EDT 2012


Thanks for the link Mark

> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Mark Schonewille
> Gesendet: Freitag, 5. Oktober 2012 14:14
> An: How to use LiveCode
> Betreff: Re: relation between textsize and field height?
> 
> Hi Tiemo,
> 
> There was a discussion about it on the forum.
> Look here: http://qery.us/2ll
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour
> spaces. http://www.color-converter.com
> 
> 
> 
> On 5 okt 2012, at 14:01, Tiemo Hollmann TB wrote:
> 
> > 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