[futurebasic] Centering text

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2009 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Mon, 19 Oct 2009 19:44:46 -0400
I am having an issue trying vertically center text in a larger  
rectangle.

Using Fn StringWidth to get the width of the text and the height using  
GetFontInfo. I calculate how many lines are needed and adjust the  
rect.top accordingly.  This is the part that is failing.

But it's not working correctly.  Maybe I am not getting the font  
metrics correctly.

Can anyone point me to examples of doing this correctly?

tia

~ steve