Computer Science Canada How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
Author: | vdemons [ Sun May 01, 2011 7:19 pm ] |
Post subject: | How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
Author: | Insectoid [ Sun May 01, 2011 7:24 pm ] |
Post subject: | RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
If you know the average pixel width of a letter, you can estimate the width of the string, and then do something with the maxx command. You can figure it out. |
Author: | Raknarg [ Sun May 01, 2011 7:31 pm ] |
Post subject: | RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
By putting it there. The x position would be maxx div 2, then subtract a bit to get it completely in the middle. |
Author: | vdemons [ Sun May 01, 2011 7:53 pm ] |
Post subject: | RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
Thank you Insectoid & Raknarg |
Author: | vdemons [ Sun May 01, 2011 7:54 pm ] |
Post subject: | RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
very helpful |
Author: | chrisbrown [ Sun May 01, 2011 9:01 pm ] |
Post subject: | Re: How do you center a Font.draw in the middle of the x - axis, (bottom middle)? |
Also Font.Width |