Re: Re: [Flashcoders] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-04 Thread Jolyon Russ
Flash/CSS/Photoshop/et al accept negative values for leading and kerning. 0 is your baseline negative pulls tighter positive pushes looser. On 11/3/06, Ray Chuan [EMAIL PROTECTED] wrote: Hi, are you sure negative leadings are allowed? I've tried and don't see any difference. I'm guessing

Re: [Flashcoders] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-03 Thread Ray Chuan
Hi, are you sure negative leadings are allowed? I've tried and don't see any difference. I'm guessing lineCount should be an integer, so you should use: Math.floor(ht/(size+leading)) Assuming leading0. On 11/3/06, grimmwerks [EMAIL PROTECTED] wrote: It's time for one of those brainfarts.

[Flashcoders] math for getting textField's line number? ie height/(font.size+font.leading) ??

2006-11-02 Thread grimmwerks
It's time for one of those brainfarts. I'm trying to position a textField's bottom in line with other textfields; I've added leading to all the textField's so my math is now off. All the single-line textFields are positioned properly, but the mutli-line textfields are not. In the one I'm