Align texts using transformation