public property textAlign as String
Horizontal text anchor: left/start (default), center, or right/end. Applied by both filled and stroked text.
left
start
center
right
end
painter.textAlign = "center" painter.fillText("Centered", 160, 40)