What is up with FormattedHeight?

AndyP smudge.andy at googlemail.com
Mon Feb 6 03:48:30 EST 2012


Hi Howard,

Interesting.. I've just tried this and can confirm your findings.

What I think your seeing is the natural space that is built around the font,
this is usually more pronounced in the verticle padding than the horizontal.

To see what I mean, try changing the font type then refit the contents,
notice how the verticle padding changes. This is a function of the font
itself and not I believe a problem with LiveCode.

See here for a pictorial representation: 
http://slodive.com/wp-content/uploads/2011/07/helvetica/helvetica-font-download.jpg
http://slodive.com/wp-content/uploads/2011/07/helvetica/helvetica-font-download.jpg 

With Helvetica at 100pt I've found that margins of  -5, -20,-5,-20 work
well, but only at 100pt. To get a consistent removal of padding for all font
sizes ( for one type font) you will need to work out the ratio of the
natural padding to the size of the font and calculate and update the margins
for each new font size.



-----
Andy Piddock


My software never has bugs. It just develops random features.
PointandSee is a FREE simple but full featured under cursor colour picker / finder.
http://www.pointandsee.co.uk - made with LiveCode (v1.4.1 released 26/08/2011)


--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-is-up-with-FormattedHeight-tp4360344p4360697.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list