write text style along with new attributes