> The only problem is that the text from different buttons end up
> looking wrong depending on what characters are in each text string.
> Ie, whether the characters have any decenders or ascenders.

What I do in my scripts is getting the size of the text first via 
get_text_extends. You could find the baseline for the whole alphabet by 
getting the height of all possible chars. To center the box horizontal you 
have to get the extends for each string itself...

This works fine for me. Sorry, I could not give you an example, as I am doing 
something little bit different from producing buttons... you could find the 
code on http://www.stevekist.de/software.html

Regards
 Steve

Reply via email to