Text position alignment

Fixes #157.