store current text alignment and update accordingly