Replaced deprecated textAlignment: properties