added support for setting ttributedText directly