
-----------------------------------
vdemons
Sun May 01, 2011 7:19 pm

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)?

-----------------------------------
Insectoid
Sun May 01, 2011 7:24 pm

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.

-----------------------------------
Raknarg
Sun May 01, 2011 7:31 pm

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.

-----------------------------------
vdemons
Sun May 01, 2011 7:53 pm

RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)?
-----------------------------------
Thank you Insectoid & Raknarg

-----------------------------------
vdemons
Sun May 01, 2011 7:54 pm

RE:How do you center a Font.draw in the middle of the x - axis, (bottom middle)?
-----------------------------------
very helpful

-----------------------------------
chrisbrown
Sun May 01, 2011 9:01 pm

Re: How do you center a Font.draw in the middle of the x - axis, (bottom middle)?
-----------------------------------
Also [tdoc]Font.Width[/tdoc]
