Added inefficient (but working) support for text formatting attributes