Add basic text alignment functionality