A little help on text alignment

For those interesed, and based on our replies on the forum, I found that using the following gave much better results. Please let me know if there is a better way of doing this:

gfx.drawTextAligned(strDirection, self.width /2, 0, kTextAlignment.center)

I am leaving the question and answer for the anyone passing by!

3 Likes