Fix titler text alignment bug
When editing text in the title editor, modifying left-aligned text behaves as though the text is right-aligned and vice-versa. This diff fixes the logic of offsetting the text location based on alignment.
This was reported as Bugzilla bug 407849.