support for textAttributes dictionary