Fix vertical cursor movement in center/right -aligned and styled text